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...

wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records

Answer Posted / tulasi ravi kumar

hi this is tulasi ravi
id - ravi106109@gmail.com

select empno,sal from emp where rowid in
(select rowid from emp
minus
select rowid from emp where rownum<=(
select count(*)-3 from emp))


feel free to mail queries,,,.....

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you decide the active and passive nodes?

1178


List out the differences between the clustered index and non-clustered index in sql server?

1049


What are pages and extents? : SQL Server Architecture

1068


How to delete existing rows in a table?

1245


What is the template in sql?

1029


You want to implement the many-to-many relationship while designing tables. How would you do it?

1044


explain databases and sql server databases architecture? : Sql server database administration

1012


What different steps will a sql server developer take to secure sql server?

1039


What are the advantages of using stored procedures?

1004


How to loop through the result set with @@fetch_status?

1430


What is rs.exe utility?

163


When cursors are useful?

1168


What are the different methods available under sqlcommand class to access the data?

1166


Explain transaction server implicit?

1027


What does <> symbol mean?

1026