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

SELECT employeeID from ( Select ROW_NUMBER() OVER ( order by id )as RowNumber,employeeID FROM Employee ) as x where x.RowNumber % 5 = 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 is dml command?

1020


Is foreign key a primary key?

1179


How do I get to sql server configuration manager?

1062


Explain how you can deploy an SSRS report?

156


What are the differences between union, intersect, and minus operators?

1143


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?

2081


How to find the list of fixed hard drive and free space on server?

1282


Explain different forms of normalization?

1003


How to create a user to access a database in ms sql server using "create user" statements?

997


Do you know how to make remote connection in database?

1010


What is pivot and unpivot?

1066


What is transaction server explicit transaction?

1089


Write SQL queries on Self Join and Inner Join.

1218


How does index makes search faster?

1025


How do I find sql server instance name?

1008