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

I want to know last five transactions or records from emp
table, from now?

Answer Posted / sidhu

For ex: emp table, we want last five transaction in emp

select * from emp
minus
select * from emp where rownum <= (select count(*)-&n from emp);

this will work and give the value 5 it will return last five transacitons.
hope this helpful

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a sql query to convert all character to uppercase after hypen.

1487


how many sql dml commands are supported by 'mysql'? : Sql dba

1171


How are functions and procedures called in PL/SQL?

1310


Is sql the best database?

1030


How many sql core licenses do I need?

1000


What is sqlca in db2?

1039


How much does a sql dba make? : SQL DBA

993


What is a delimiter in sas?

1132


Why cross join is used?

1140


what is the difference between sql and t-sql? : Transact sql

1138


Does sap use sql?

1045


How do I tune a sql query?

1044


Explain the order of sql statement execution?

1091


what is the syntax for using sql_variant_property? : Transact sql

1086


What is the purpose of normalization?

1088