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
What are cursors in ms sql server?
You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?
tell me what is blocking and how would you troubleshoot it? : Sql server database administration
Is BCNF better than 2NF & 3NF? Why?
How to send email from database?
Explain about analysis services?
What is a database in ms sql server?
What are the kinds of subquery?
What functions can a view be used to performed?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
What is the main difference between ‘between’ and ‘in’ condition operators?
What is table-valued sub query?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
How many databases instances are there in sql server 2000?
Explain the relational database management system (rdbms)?