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
We need to perform what steps in the following order to work with a cursor?
What is an sql server agent?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
How many instances per computer are there in sql server 2000?
What is full outer join in sql server joins?
How extra digits are handled with numeric data type literals?
in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration
Describe in brief authentication modes in sql server.
What is self contained multi valued query?
What are different types of roles provided by ssrs?
What is a transactions?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
What is a not null constraint?
What is table level trigger?
Does the order of columns in update statements matter?