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 * 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 ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain candidate key, alternate key, and composite key?

1001


Do you know what is user defined datatypes and when you should go for them?

966


What is raid? : SQL Server Architecture

1172


What is sql profiler. What are the default templates with it? : sql server database administration

1037


How many joins in sql server?

956


Disadvantages of the indexes?

1121


What are system databases in ms sql server?

1053


What are types of storage modes? : sql server analysis services, ssas

1034


how can u get last observation in an unknown dataset ?

2434


Explain the disadvantages/limitation of the cursor?

963


What do you understand by user-defined function in the sql server?

951


What are the different Topologies in which Replication can be configured?

1183


How to find the login name linked to a given user name?

1011


1.what is the diff between nolock optimizer and read uncommitted isolation? 2.what is the diff between revoke and deny? 3.what is percieved down time? 4.whether password protection are required for backups?if yes why?if no why? 5.what is fill factor? 6.what is cost analysis? 7.what is mean by piece meal restore? 8.what is 'rowguidcol'? 9.impersonate permission? 10.what is selectivity?

2073


Does order by actually change the order of the data in the tables or does it just change the output?

1144