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

How to add additional conditions in SQL?

1022


What is Transparent Data Encryption?

1001


What is the difference between for trigger and after trigger?

1106


What do you understand by the data quality services in sql server?

948


Explain query editor regions

1045


How to write a query with a right outer join in ms sql server?

913


What is the difference between a check constraint and a rule?

1250


How does clustered and non clustered index work?

924


List the advantages of using stored procedures?

1055


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

960


What is difference between standardization and normalization?

1102


Tell me what is use of except clause? How it differs from not in clause?

962


How to delete exactly duplicate records from a table?

1063


What are character string data types in ms sql server?

1251


List the data types available in mssql?

1033