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
Differentiate between delete and truncate.
How to rename an existing column with sql server management studio?
Do you know what is difference between stored procedure and user defined function?
Do you know what are different types of replication in sql server?
What is key set driven?
Explain what are the database objects? : SQL Server Architecture
What is inline variable assignment?
What are wait types?
What happens if an integer is too big for int date type?
Explain the microsoft sql server delete command?
What is stored procedures?
Why people hate cursor?
‘Order by’ is not allowed in a view how can you sort information from a view?
How many types of dimensions are there and what are they? : sql server analysis services, ssas
Difference between uniqe index and uniqe constraint?