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 do we find every fifth record in a table

Answer Posted / shanmugam

with cte as(
select ROW_NUMBER() over (order by id) as serial,* from tablename
)
select * from cte where serial=5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the synonym of join?

895


what is a correlated sub-query? : Sql server database administration

893


What is format parameter in ssrs?

136


where can you add custom error messages to sql server? : Sql server administration

1046


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

1079


what method you can use to reduce the overhead of Reporting Services data sources?

234


What are user-defined functions (udfs) in sql server?

935


How to find out what is the default collation in a database?

1060


Explain atomicity?

972


What is the contrast between sql and pl/sql?

1075


what are the core components of SSRS?

121


Define full outer join?

892


What are the different types of sql server replication? : sql server replication

1157


What is the meaning of sql server?

935


Why transaction is important?

933