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 2005 Forums
 Transact-SQL (2005)
 Sorting database

Author  Topic 

tkotey
Yak Posting Veteran

75 Posts

Posted - 2008-06-30 : 08:52:19
Is there a way to sort a table using two or more fields in an sql statement like you can do in excel.
e.g.

ORDER BY a.hat THEN a.boot

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-06-30 : 08:54:18
ORDER BY a.hat, a.boot


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

tkotey
Yak Posting Veteran

75 Posts

Posted - 2008-06-30 : 09:08:44
quote:
Originally posted by khtan

ORDER BY a.hat, a.boot


KH
[spoiler]Time is always against us[/spoiler]





Thanks a lot it works
Go to Top of Page
   

- Advertisement -