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
What is an identity?
What are data resources?
Can you explain what is sql server english query?
Explain subquery and state its properties?
Mention the different types of triggers?
How to apply cascading referential integrity in place of triggers?
How do I shrink an ldf file?
How to convert a numeric expression from one data type to another?
How extra digits are handled with numeric data type literals?
What is the difference between DataRow.Delete() and DataRow.Remove()?
Can we perform backup restore operation on tempdb? : sql server database administration
I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration
What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
List the advantages of using stored procedures?
What is difference between global temporary tables and local temporary tables?