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
 Order By

Author  Topic 

ML101
Starting Member

8 Posts

Posted - 2011-05-02 : 10:26:44

I'm writing SQL and I was wondering how you use Order By?
"SELECT*FROM TableUser  WHERE Year='"+year1+"'ORDER BY FirstName "

this is not working..If anyone could help that would be great!

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-05-02 : 11:06:02
What did you mean by it is not working?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -