Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another SQL Question

Status
Not open for further replies.

mozingod

MIS
Jul 9, 2002
227
US
OK, I have a Date, and a time field, and I want to display the records w/the most recent at the top. So I'd want to use the ORDER BY w/date DESC and Time DESC... is there a way to do this in one SQL select statement? Thanks. Darrell Mozingo
 
Yes,

It can be &quot;select * from <table> order by datefield, timefield DESC &quot;

Thats it. _______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
Thanks.... I was trying ORDER BY date DESC and time DESC and variations of that :) Darrell Mozingo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top