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 / kumar.t

Table Name Is Employee
EmployeeId Is Identity field

Select * From Employee Where EmployeeId In (Select
EmployeeId From Employee Where EmployeeId%5=0)

by
Kumar.T

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is subquery in sql?

986


What is key attribute?

867


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

900


What happens if null values are involved in string operations?

919


How you would rewrite the sql query to return the customerid sorted numerically?

935


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

836


Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?

2437


Do you know what is difference between stored procedure and user defined function?

1031


What is stored procedures?

954


Is there any difference between the primary key and unique key?

949


Can we call future method from trigger?

877


Explain what is the function of sql server agent windows service?

937


What are different types of join?

1233


How to create a view using data from another view?

902


Explain mixed authentication mode of sql server?

988