Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ordering output

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I am using asp, vbscript and sql server 7 - hope this is the right forum... how would I change the listing order of a db... like say I am displaying colors and prices and say the db looked like:
Field Name Item Color Item Price
Field Value Red 12
Blue 20
Green 30

What command would I give to have the output display by color versus price?
 
Use the following SQL statement:

SELECT * FROM TableName ORDER BY Color

Choo Khor
choo.khor@intelebill.com
 
so would it neede to be:

objComm.CommandText = "Select *...."

??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top