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 you edit the .rdl code associated with a linked report?
Explain stored procedure?
What are the advantages of mirroring?
You want to implement the one-to-one relationship while designing tables. How would you do it?
What is the difference between join and inner join?
How to convert a numeric expression from one data type to another?
What is difference between Datepart() and Datename() in SqlServer?
What is sql server profiler?
can a table be moved to different filegroup? : Sql server administration
What are the differences between clustered and non-clustered index?
What is outer join in sql server joins?
Can you always create a cache of a report?
What are the recovery models for a database?
Can you please explain the difference between primary keys and foreign keys?
How to declare and use cursor variables?