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
Is primary key clustered or nonclustered?
What is ttitle and btitle?
What is a ddl command?
Explain sql data types?
What is the use of index in hive?
What is rownum and rowid?
What are some emotional triggers?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
What is the purpose of a secondary key?
Is sql a dbms?
What is pl sql block structure?
what is column? : Sql dba
What are inbuilt functions in sql?
Is left join inner or outer by default?
Does sql support programming?