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

Which sql server table is used to hold the stored procedure script?

884


IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do

1758


Explain intellisense for query editing

980


Can binary strings be used in arithmetical operations?

887


What are the purpose of Normalisation?

1001


Is sql server difficult to learn?

867


you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

907


What is openxml in sql server?

1112


Can a cursor be updated? If yes, how you can protect which columns are updated?

1032


What is entity data services?

1005


How many tables can be joined in SQL Server?

1006


Explain the disadvantages/limitation of the cursor?

917


How to list all schemas in a database?

1005


What is the difference between mysql and sql server?

943


What are indexers?

1036