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


Please Help Members By Posting Answers For Below Questions

What is clr ddl trigger?

731


How to set database to be single_user in ms sql server?

772


what is database replication? : Sql server database administration

721


What is public role in sql server?

749


What is deploy, process and build? : sql server analysis services, ssas

755


What are the disadvantages of merge replication?

968


What are different types of join?

956


What is an example of a primary key?

695


Is it safe to delete log files?

676


What is store procedure? How do they work? When do you use?

700


What is 'write-ahead log' in sql server 2000 ?

799


Do you think BCNF is better than 2NF & 3NF? Why?

999


What does <> symbol mean?

707


What is filter index?

702


What is schemabinding a view?

697