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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Order

Re: SQL Order

From: <ctcgag_at_hotmail.com>
Date: 19 Sep 2002 02:00:38 GMT
Message-ID: <20020918220038.579$9n@newsreader.com>


"Lucas" <Lucas_44_at_hotmail.com> wrote:
> Hi all,
>
> I want my query result to be in the same order as my codes that I set:
>
> Ex:
>
> select * from
> Emp
> where empcode in (810,974,603,648)
>
> The result is not at all in this order? Any suggestions on why? Or is
> there a better way of doing this?

select * from Emp where empcode=810;
select * from Emp where empcode=974;
select * from Emp where empcode=603;
select * from Emp where empcode=648;

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
                    Usenet Newsgroup Service
Received on Wed Sep 18 2002 - 21:00:38 CDT

Original text of this message

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