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 retrieve last tree records from table?
select *from emp where rownum > (select count(*)-3 from
emp);
i am using this query to get last three records from table
but its not giving any output, so please tell me what is the
error in this query.

Answer Posted / ramareddy

u don't use minum operator to count(*) in subquerry

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql and its types?

1174


How to load data with sql*loader?

1046


Are stored procedures faster than dynamic sql?

1029


Which data dictionary views have the information on the triggers that are available in the database?

1232


Explain unique key in sql.

1003


Is id a reserved word in sql?

1141


How can you get sql*loader to commit only at the end of the load file? : aql loader

1008


What are local and global variables and their differences?

1086


How to get unique records from a table?

956


Why is nosql good?

1019


what is the use of set statement in tsql? : Transact sql

1005


How to disable a trigger name update_salary?

1262


What is secondary key?

932


What is file based approach?

935


What is the difference between syntax error and runtime error?

1135