Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Order by Date

Author  Topic 

Faiyth
Starting Member

19 Posts

Posted - 2002-03-06 : 13:25:10
I want to order by date from newest to oldest..

here's my code. What do I do to order by newest to oldest?

select intakeno, adddate, addbreed, addage, addpen, addsex, addimg, addcolor, addcomments from K9Manager WHERE adddate is not NULL and addcomments is not NULL order by adddate

Jay99

468 Posts

Posted - 2002-03-06 : 13:33:44
select intakeno, adddate, addbreed, addage, addpen, addsex, addimg, addcolor, addcomments from K9Manager WHERE adddate is not NULL and addcomments is not NULL order by adddate DESC

Jay
Go to Top of Page

Faiyth
Starting Member

19 Posts

Posted - 2002-03-06 : 13:34:57
That must have been an easy one.. Thanks!!

Go to Top of Page
   

- Advertisement -