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 / vicky

Assuming there are 3 columns in the table emp1

select id, name ,salary from ( select id,name ,salary,
mod(rownum,5) as r from emp1) where r=0

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Spatial data types in SQL Server 2008

1072


What kind of problems occurs if we do not implement proper locking strategy?

1466


What are the restrictions while creating batches in sql server?

1116


How will you hide an attribute? : sql server analysis services, ssas

1012


What is table-valued sub query?

1026


Explain some stored procedure creating best practices or guidelines?

1003


What is the tcp/ip port on which sql server runs?

1242


What is the meaning of sql server?

1037


What are the various Operating system files that every SQL server 2005 database has and what is the purpose.

1116


It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio

1089


How to test odbc dsn connection settings?

1087


How to generate create table script on an existing table in ms sql server?

1196


What is RMS migrations?

2191


Give an example of why you would want to denormalize a database

1031


What are binary string data types in ms sql server?

1391