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 procedures and functions?

1071


Explain clause in sql?

1071


explain the difference between bool, tinyint and bit. : Sql dba

1063


what happens if null values are involved in expressions? : Sql dba

1091


What is synonyms?

1118


how to see the create table statement of an existing table? : Sql dba

1057


What is set transaction?

1088


Difference between truncate, delete and drop commands?

1142


Which table is left in left join?

1060


What is a clob in sql?

1063


What does a pl/sql package consist of?

1015


What is the life of an sql statement?

1073


What is linq to sql?

1178


what is data control language? : Sql dba

1067


how can you see all indexes defined for a table? : Sql dba

1051