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
Differentiate between pl/sql and sql?
How do I view output in sql developer?
Mention what does the hierarchical profiler does?
What is the primary use of normalization?
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
What does the argument [or replace] do?
Can you rollback after commit?
What is aggregate function in sql?
Explain the difference between rename and alias?
Enlist the data types that can be used in pl/sql?
Define implicit and explicit cursors.
What is minus?
Can we commit in trigger?
What is pl sql code?
Does truncate release storage space?