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
Define union, union all, minus, intersect?
Explain the microsoft sql server delete command? : SQL Server Architecture
What is rank function?
What are different types of statement?
How to locate and take substrings with charindex() and substring() functions?
How would you use user_constraints table in DB?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
what is denormalization and when would you go for it? : Sql server database administration
How do you set a trace flag in sql server?
Explain Geometry datatype in sql server 2008 with example
Explain the architecture of ms sql reporting service?
Give me any three differences between Truncate and Delete.
Describe and explain about SQL native client?
Can we use where clause in union?
While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?