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 to select nth record from a table?

Answer Posted / mohan krishna

declare @querry nvarchar(500)
declare @row varchar(10)
set @row = '5'

set @querry ='
select top 1 a.* from
(select * from vdpmaster..usermaster
where usr_id not in
(select top '
set @querry = @querry + @row + ' usr_id from
vdpmaster..usermaster)
)a'
print @querry
EXEC sp_executesql @querry

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many triggers are possible per table?

1104


What is the meaning of sql server?

987


Where do you find the default Index fill factor and how to change it?

1066


what are user defined datatypes and when you should go for them? : Sql server database administration

1024


Why is normalisation important?

951


How many types of schemas are there?

1044


How to disconnect from a sql server using mssql_close()?

1114


Explain what is raid and what are different types of raid levels?

1029


What is the default Port No on which SQL Server listens?

1126


What is in place upgrade in sql server?

1047


What is policy management?

1003


How to read data in a table with "select" statements?

976


What are rest-style architecture's?

172


How does clustered and non clustered index work?

930


What is the Control Flow in SSIS

1098