how to select 5 to 7 rows from a table, which contains 10 rows?
Answer Posted / ayyappanramachandran
You can achieve this by using following Query
select * from(select top 3 * from employees where
employeeid in(select top 7 employeeid from employees where
employeeid not in(select top 4 employeeid from employees
order by employeeid)))e order by employeeid.
Thanks
AyyappanRamachandran
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How will you know when statistics on a table are obsolete?
Does order by actually change the order of the data in the tables or does it just change the output?
Explain cursor as data base object?
what changed between the previous version of sql server and the current version? : Sql server database administration
What is normalization process?
What is user-defined functions? What are the types of user-defined functions that can be created?
Explain can you implement data mining in ssrs?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
Can you explain important index characteristics?
What is use of except clause? How it differs from not in clause?
What is xdr?
How many database files are there in sql server 2000?what are they?
Explain subquery and state its properties?
What does it mean to invest in the index?
What are the 2 types of classifications of constraints in the sql server?