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
 General SQL Server Forums
 New to SQL Server Programming
 Multiple Order bys in one request

Author  Topic 

edb2003
Yak Posting Veteran

66 Posts

Posted - 2005-10-07 : 14:13:44
Greetings
This probably is a silly question but I can't get it to work.
I need to pull data from a table and Order the information by 2 requests.

Something like ...

Select * from MyTable
where pid = @pid
Order by DATE and Order by Product

Can someone help me in getting my ORDER statements to work?

Thx,
Edb

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-10-07 : 14:17:23
ORDER BY [Date], Product

Tara
Go to Top of Page

edb2003
Yak Posting Veteran

66 Posts

Posted - 2005-10-07 : 14:42:28
Thanks Tara, It worked
Go to Top of Page
   

- Advertisement -