Click here to Skip to main content
15,907,493 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
string queryStr = "SELECT * FROM Inventory Order By FoodID && ItemID";
Posted
Comments
scottgp 3-Feb-14 10:27am    
If you're trying to order by both columns, it would be "FoodID , ItemID"
Richard C Bishop 3-Feb-14 10:28am    
Post that as the solution.
scottgp 3-Feb-14 10:32am    
Thanks, but it seemed so simple I was almost embarrassed to post it as a solution ;-)
Richard C Bishop 3-Feb-14 10:36am    
I know the feeling.

1 solution

If you're trying to order by both columns, it would be
"SELECT * FROM Inventory Order By FoodID, ItemID";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900