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 / karthikeyan
select * from table_name order by id;
| Is This Answer Correct ? | 1 Yes | 14 No |
Post New Answer View All Answers
How do you delete duplicate rows in sql server?
what is normalization? Explain different levels of normalization? : Sql server database administration
What are the properties of the transactions?
Tell me what do you understand by a view? What does the with check option clause for a view do?
What is exclusive locks?
What are the tools available in market as an alternative to sql server reporting services?
What are the different Authentication modes in SQL Server and how can you change authentication mode?
What does the not null constraint do?
Explain cdc and sql injection?
How do I run sql server 2014?
How do you know if sql server is running on your local system?
Define indexes?
What is de-normalization in sql database administration? Give examples?
Explain the concepts and capabilities of sql server?
What is key set driven?