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 get 25th row in any table in sqlserver can u tell me
syntax

Answer Posted / pradyumna

set rowcount 25
declare @temptable table
(id int identity(1,1),itemid int)
insert @temptable
select itemid from tbl123

select * from tbl123 where itemid=(select itemid from
@temptable where id=25)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

System variable and temporary variables

2298


What is user-defined functions? What are the types of user-defined functions that can be created?

1078


What is coalesce in sql server?

1100


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

1046


What is PROJECTION Operation?

1074


Which sql server table is used to hold the stored procedure script?

1004


Can a function call a stored procedure in sql server?

1001


What are the different types of normalization?

1219


Difference between report and query parameter. Why do we need different type of parameter?

1008


How to disable triggers using "disable trigger"?

1104


Why SQL Agent is used?

1204


What are subqueries in sql server?

1191


How many types of stored procedures are there in sql server?

1056


What is the default fill factor value?

1127


Explain tablesample?

1037