The fourth sort doesn't follow the same logic as the other three sorts.
The logic I see is to list the current row first and the remaining rows
in ascending numeric order by column two. The fourth sort uses the
reverse of this logic, which you can certainly program it to do, but it
doesn't follow the pattern laid out by the first three.
-----Original Message-----
From: krishnakumar
[mailto:oracledba-ezmlmshield-x61880988.[Email address protected]
Sent: Wednesday, January 31, 2007 7:37 AM
To: LazyDBA Discussion
Subject: RE: Order by
Not exactly random output , Want output to be in first for the rows
whose values does not come under ascending or descending order.
-----Original Message-----
From: Chelur Jayadas
[mailto:oracledba-ezmlmshield-x91514071.[Email address protected]
Sent: Wednesday, January 31, 2007 7:01 PM
To: LazyDBA Discussion
Subject: RE: Order by
Is this some kind of random ordering or what ?!!!
-----Original Message-----
From: krishnakumar
[mailto:oracledba-ezmlmshield-x71482367.[Email address protected]
Sent: Wednesday, January 31, 2007 8:25 AM
To: LazyDBA Discussion
Subject: Order by
Folks,
My table T has following data. Kindly help
Column1 column2
Andrew 1
Catherine 2
Franklin 3
I want out put as
1)
Catherine
Franklin
Andrew
2) Catherine
Andrew
Franklin
3) Franklin
Andrew
Catherine
4)Andrew
Franklin
Catherine
Thanks
================================
R.Krishna Kumar
Mobile : +91 - (0)944 -206-6159
================================
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com
---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com
---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
Oracle LazyDBA home page