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

Write a query to get last 10 records from the table.

Answer Posted / jprakash025

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

or



SQL> select * from
2 (select rownum a, emp.* from emp)
3 where
4 a>(select max(rownum)-10 from emp);

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between pl/sql and sql?

1073


How do I view output in sql developer?

1029


Mention what does the hierarchical profiler does?

1023


What is the primary use of normalization?

944


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

972


What does the argument [or replace] do?

1017


Can you rollback after commit?

936


What is aggregate function in sql?

988


Explain the difference between rename and alias?

966


Enlist the data types that can be used in pl/sql?

1014


Define implicit and explicit cursors.

1076


What is minus?

940


Can we commit in trigger?

923


What is pl sql code?

995


Does truncate release storage space?

1015