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 is the most common sql injection tool?
What is example of database?
What sql database should I use?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
How is a process of pl/sql compiled?
What is a heap in sql?
What is difference between stored procedure and trigger?
what are the types of subquery? : Sql dba
What is rename in sql?
how can you see all indexes defined for a table? : Sql dba
What is snowflake sql?
Can I call a procedure inside a function?
Which is faster joins or subqueries?
what is bcp? When does it used? : Sql dba
what is rollback? : Sql dba