Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: data query question

Re: data query question

From: Tim Sawmiller <sawmillert_at_state.mi.us>
Date: Thu, 18 Jan 2001 15:01:32 -0500
Message-Id: <10745.127064@fatcity.com>


Do you get the same result using the order by?

>>> crivera_at_utep.edu 01/18/01 01:34PM >>>
Hello everyone:
I have a question about a query dealing with dates. This is my origina query:
select distinct to_char(question_date,'DD-MON-YYYY') from student_profile where student_id =3D 10;
I get the following results:

04-JAN-2001
05-JAN-2001
07-NOV-2000
08-NOV-2000
09-JAN-2001
14-NOV-2000
15-DEC-2000
15-NOV-2000
18-JAN-2001
19-DEC-2000
20-DEC-2000
21-DEC-2001


I am getting the correct results, but not in the order I expected (chronological order). I have tried "order by question_date' but no = success.

Thanks in advance!

--------------Claudia V. Casas-----------------


--=20
Please see the official ORACLE-L FAQ: http://www.orafaq.com=20 --=20
Author: Rivera, Claudia
  INET: crivera_at_utep.edu=20

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Jan 18 2001 - 14:01:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US