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 are the basic features of a trigger in ms sql server?
What do you mean by sql server 2005 express management tools?
How to use copy and concatenate commands in SQL?
How to connect of datebase with sql express.?
what are defaults? : Sql server database administration
How much space does sql server 2016 take?
How do I clean up sql server transaction log?
How sql server executes a statement with nested subqueries?
What is collation sensitivity?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
How to retrieve error messages using odbc_errormsg()?
What is self join in sql server joins?
What are differences in between sql server 2012 and sql server 2016?
What are the new features in SQL Server 2005 when compared to SQL Server 2000?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?