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 to define testing of network layers? : Sql server database administration
How to get nth highest salary from employee table.
What do you understand by SQL*Net?
What is the purpose of grouping data in a report?
What are xml indexes?
What are sp_configure commands and set commands?
Define outer join in sql server joins?
How do you delete a trigger?
Do you know the policy based administration feature of sql server 2008?
Which trace flags are enabled in sql server?
Explain about Normalization?
How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.
explain the storage models of olap? : Sql server database administration
Can sql servers link to other servers like oracle?
Explain how to maintain a fill factor in existing indexes?