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 / boby

insert into <table_name>(id,name) values(2,'e')ORDER BY ID

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the restrictions that views have to follow?

716


What is an inner join?

615


What is the difference between a clustered index and a non-clustered index?

617


What is raiseerror? What is raiseerror?

737


How can you append an identity column to a temporary table?

523






How to create a user name in a database?

682


What is clustered vs nonclustered index?

590


What stored by the tempdb ? : sql server database administration

669


How to select some specific columns from a table in a query in ms sql server?

627


Define normalisation?

775


do you know how to configure db2 side of the application? : Sql server database administration

681


Differentiate sql server reporting services vs. Crystal reports?

158


How to return the date part only from a sql server datetime datatype?

674


Explain Capacity planning to create a database? and how to monitor it?

3851


What is difference between standardization and normalization?

631