![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New to the CF scene Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Sorting a query by the time in a DATETIME field
Hey guys...I'm trying to write a query that will sort a bunch of rows (using ORDER BY) by just the time fields in a DATETIME field type. I'm not even sure if this is possible or if anyone has actually tried to do it before. :P Any help would be appreciated!
- Brian |
|
|
|
|
|
PM User | #4 |
|
teh Moderatorinator ![]() ![]() Join Date: Sep 2004
Location: USA
Posts: 2,435
Thanks: 2
Thanked 38 Times in 38 Posts
![]() |
My bad, I misread your post. Try:
select DateField from table order by right(DateField,9) DESC; Last edited by Brandoe85; 02-09-2005 at 12:45 AM.. Reason: Had to fix something |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|