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

--For ex in dept table to select 5th record. Instead of
this you can use &n so that it can ask row number

select rnum, d.* from dept d, (select rownum rnum ,
deptno from dept ) e
where d.deptno = e.deptno and rnum = 5

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a SQL query to make a column as unique?

1043


What is @@error in sql?

1070


Explain temporary table vs table variable by using cursor alternative?

1001


Explain system functions or built-in functions? What are different types of system functions?

984


How to create a dml trigger using create trigger statements?

1038


How to create an inline table-valued function?

982


How does Report Builder support Analysis Services cubes?

156


What are the different types of backups that exist?

1172


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

1272


What’s the use of custom fields in report?

944


Do you know how to make remote connection in database?

965


How many clustered indexes there can be on table ?

1040


How network traffic be reduced by using the stored procedure?

1118


Why main is user defined function?

1014


What are cursors in ms sql server?

1183