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

What is indexed view? How to create it?

930


Explain how many types of relationship?

972


What is standby servers? Explain types of standby servers.

930


What to check if a User database is locked?

1017


Explain what is the purpose of sql profiler in sql server?

1008


Mention the different authentication modes in sql server.

960


Differentiate between sql temp table vs table variable?

829


Mention the different types of triggers?

1004


Why normalization is used?

965


explain different types of cursors? : Sql server database administration

1023


What is stretch database in sql server?

1025


Can you get second highest salary from the table?

911


Explain about extended stored procedure?

862


What is merge replication?

1064


What is RMS migrations?

2084