I have table like
sno name id
1 ras 1
2 nnn 3
3 raju 2
4
.
.
.
.
2000 vamshi 2000
i want to select order by id
but iam using this quarie
selec * from tablename orderby id asc
using above quarie not display order
plz write quarie......
Display order by
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Munesh SharmaRank #174 · 13.9K reputationPosted Apr 1, 2014, 11:08 PM EDT
select * from tablename order by id asc
saurabh mittal152 reputationPosted Apr 1, 2014, 11:12 PM EDT
Query For select record in Order By-
Select * from Table_name Order By id ASC/DESC
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 1, 2014, 11:16 PM EDT
SELECT * FROM [TableName]
ORDER BY id ASC/DESC
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 1, 2014, 11:49 PM EDT
you query must work because it is correct query. can you please share output the query ?