how to select 5 to 7 rows from a table, which contains 10 rows?
Answer Posted / monty
i have other idea if there is no duplicate record in the
table you can use this
select top 7 *from employee
except
select top 4 *from employee
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How can a database be repaired?
What to check if a User database is locked?
how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }
Write a code to select distinct records without using the DISTINCT keyword.
Can we take the full database backup in log shipping?
What is a transact-sql statement?
1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?
what are the types of indexes? : Sql server database administration
Find first and last day of current month in sql server
what happens on checkpoint? : Sql server database administration
What encryption security is available in sql azure?
How can you insert null values in a column while inserting the data?
What are horizontal and vertical scaling?
What is the security principal at the database level that represents your session?
what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration