how to select 5 to 7 rows from a table, which contains 10 rows?
Answer Posted / purabi roy(sarkar)
select top 3* from Tablename
where columnname in ( select top 7columnname from table
name order by columnname desc )
and columnname not in( select top 4columnname from
tablename order by columnname desc )
order by columnname desc
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
can a table be moved to different filegroup? : Sql server administration
Explain nested trigger in sql?
tell me what is blocking and how would you troubleshoot it? : Sql server database administration
Can we use pragma autonomous_transaction in trigger?
Describe and explain about SQL native client?
What are the 7 disadvantages to a manual system?
What is isolation levels?
How to delete duplicate rows?
Is it true, that there is no difference between a rule and a check constraint?
How to set the current database in ms sql server?
How to create a ddl trigger using "create trigger" statements?
Explain the different types of backups available in sql server? : sql server database administration
What are statistics?
How to drop an existing schema in ms sql server?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?