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 to create a ddl trigger using "create trigger" statements?
Tell about MOM Tool(Microsoft Operator Manager)?
Mention the command used to rename the database.
How to drop existing views from a database in ms sql server?
How to create a new login name in ms sql server?
what are database files and filegroups? : Sql server database administration
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration
What is dirty page?
how to invoke a trigger on demand? : Sql server database administration
What is the sql case statement used for?
what method you can use to reduce the overhead of Reporting Services data sources?
What is the size of transaction log file?
Does partitioning improve performance sql server?
How to concatenate two binary strings together?
What are the types of resultset?