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
What are the qualities of 2nf?
Is not equal in sql?
What is a full join?
What is sap sql?
What is the use of prepared statement?
What does where 1 1 mean in sql?
Are views faster than queries?
What is consistency?
How much does sql cost?
What are the parameter modes supported by pl/sql?
What is scope of pl sql developer in future?
What is clustered index sql?
How to run sql statements through the web interface?
What is sql entity?
What is a function in oracle pl sql?