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
What is outer join in sql server joins?
How to delete all rows with truncate table statement in ms sql server?
What are the disadvantages of using querystrings to send data from one page to another?
How to return the second 5 rows in ms sql server?
Why it is recommended to avoid referencing a floating point column in the where clause?
How to create a stored procedure with a statement block in ms sql server?
How to list all columns in a table using odbc_columns()?
Explain powershell included in sql server 2008?
How to list all stored procedures in the current database using ms sql server?
Explain how you can configure a running aggregate in SSRS?
What is the Control Flow in SSIS
How to rebuild master databse?
What are wait types?
What is the order by used for?
What is the significance of null value and why should we avoid permitting null values?