here id col have primary key and identity
id name
1 a
2 b
3 c
4 d
delete 2nd row then o/p will be
id name
1 a
3 c
4 d
next inssert 2nd row and i want o/p will be
id name
1 a
2 e
3 c
4 d
Answer Posted / karthikeyan
select * from table_name order by id;
| Is This Answer Correct ? | 1 Yes | 14 No |
Post New Answer View All Answers
What is plan freezing?
Mention the differences between substr and charindex in sql server.
State the difference between local and global temporary tables?
What is an index. What are the types?
what method you can use to reduce the overhead of Reporting Services data sources?
How does index makes search faster?
what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration
how will add additional conditions in sql?
What is the size of transaction log file?
What is function of ROLLUP ?
How many types of objects are there?
What is the purpose of sql profiler in sql server? : sql server database administration
What is failover clustering overview?
What are the different ways you can create databases in sql server?
What is coalesce in sql server?