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
What is the difference between stored procedure and functions?
What is Command line parameters in PLSQL.?
What are Spatial data types in SQL Server 2008
What is trigger explain with program?
What is the difference between Clustered and Non-Clustered Index?
Can a trigger be created on a view?
Do you know the policy based administration feature of sql server 2008?
What do you mean by an execution plan?
Explain what are the authentication modes in sql server?
What gets stored inside msdb database?
What is an example of a foreign key?
What is SubQuery in SQL Server 2008
What is a virtual table in sql?
Explain atomicity?
Explain few examples of stored procedure over triggers?