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
Can we call dml statement in function?
What is partition by in sql?
What is Collation Sensitivity ? What are the various type ?
What are reports usually used for?
When you have to use a default "rollback to" savepoint of plvlog?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
how would you enter characters as hex numbers? : Sql dba
How does one load ebcdic data? : aql loader
how to use in conditions? : Sql dba
How to change the order of columns in Oracle SQL Plus ?
what are numeric data types? : Sql dba
differentiate between float and double. : Sql dba
What is a relationship and what are they?
Does truncate need commit?
How many developers work on postgresql?