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

Why do we need cursors in pl sql?

1152


What is latest version of sql?

1101


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

1015


What is embedded sql in db2?

1061


What is sql architecture?

1102


What is nvarchar in sql?

978


What is indexing oracle sql?

1142


What is the difference between microsoft access and sql server?

1104


What is rtm stands for?

1173


what is self-join? : Sql dba

1237


What is a system versioned table?

1039


What is cursor in pl sql with examples?

1087


How many types of indexes are there in sql?

1039


What is group by in sql?

1124


Write the command to remove all players named sachin from the players table.

1224