RE: Order by

RE: Order by

 

  

No -- but who knows what weird business requirements these might
actually represent.

Paul Blosser
System Developer
Abanco Int'l, LLC.
847-227-2301x2421
-----Original Message-----
From: William J Koster
[mailto:oracledba-ezmlmshield-x90292283.[Email address protected]
Sent: Thursday, February 01, 2007 6:18 AM
To: LazyDBA Discussion
Subject: RE: Order by

Okay, am I the only one who finds him/herself wondering about this
"sort"????


------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written
agreement or government initiative expressly permitting the use of
e-mail
for such purpose.
------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------------






"krishnakumar"

<oracledba-ezmlms

hield-x36937268.x
To
[Email Address Removed] "LazyDBA Discussion"

a.com> <[Email address protected]


cc
02/01/2007 01:01

AM
Subject
RE: Order by


















Thank you all , I myself found the query for sorting...

1)SELECT * FROM t1
WHERE column2=2
UNION ALL
SELECT * FROM t1
WHERE column2=3
UNION ALL
SELECT * FROM t1
WHERE column2=1

2) SELECT * FROM t1
WHERE column2=2
UNION ALL
SELECT * FROM t1
WHERE column2<>2

3)SELECT * FROM t1
WHERE column2=3
UNION ALL
SELECT * FROM t1
WHERE column2=1
UNION ALL
SELECT * FROM t1
WHERE column2=2

4)SELECT * FROM t1
WHERE column2=1
UNION ALL
SELECT * FROM t1
WHERE column2=3
UNION ALL
SELECT * FROM t1
WHERE column2=2

================================
R.Krishna Kumar
Mobile : +91 - (0)944 -206-6159
================================


-----Original Message-----
From: Midkiff Donald
[mailto:oracledba-ezmlmshield-x25948647.[Email address protected]
Sent: Wednesday, January 31, 2007 7:14 PM
To: LazyDBA Discussion
Subject: RE: Order by

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




---------------------------------------------------------------------
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






---------------------------------------------------------------------
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