Multi-field database "order by"

S

Simon Wigzell

Is it possible to retrieve data with ASP sorted on 2 fields? I've tried :

SELECT * FROM [TableName] ORDER By Field1 AND Field 2

But it gives an error. I've searched the internet on this topic to no avail.
Is it possible? Thanks.
 
K

Ken Schaefer

ORDER BY Field1, Field2

(will order by Field1, and for items in Field1 that are the same, it will
order by Field2)

Cheers
Ken


: Is it possible to retrieve data with ASP sorted on 2 fields? I've tried :
:
: SELECT * FROM [TableName] ORDER By Field1 AND Field 2
:
: But it gives an error. I've searched the internet on this topic to no
avail.
: Is it possible? Thanks.
:
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,095
Messages
2,570,616
Members
47,232
Latest member
helpplease!

Latest Threads

Top