Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can you edit the .rdl code associated with a linked report?

164


Explain stored procedure?

1060


What are the advantages of mirroring?

995


You want to implement the one-to-one relationship while designing tables. How would you do it?

969


What is the difference between join and inner join?

1021


How to convert a numeric expression from one data type to another?

1023


What is difference between Datepart() and Datename() in SqlServer?

1212


What is sql server profiler?

1017


can a table be moved to different filegroup? : Sql server administration

984


What are the differences between clustered and non-clustered index?

1033


What is outer join in sql server joins?

1126


Can you always create a cache of a report?

174


What are the recovery models for a database?

1108


Can you please explain the difference between primary keys and foreign keys?

1117


How to declare and use cursor variables?

1176