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

Is sql considered coding?

1011


how many columns can be used for creating index? : Sql dba

915


What are different functions in sql?

912


What is normalization in a database?

1126


How to check if a column is nullable before setting to nullable?

1079


what is meant by urlencode and urldocode? : Sql dba

1114


Explain the the update statement in sql?

1002


Explain architecture of sql server notification services?

1012


What is the syntax and use of the coalesce function?

1118


What program will open a mdb file?

934


what is timestamp in mysql? : Sql dba

1033


Is coalesce faster than isnull?

924


How do I run a script in sql developer?

915


what is 'mysqlshow'? : Sql dba

986


explain the options of myisamchk to improve the performance of a table. : Sql dba

973