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 does pl sql stand for?
Is sql a scripting language?
Are views faster than queries?
How many subqueries can be nested in a statement?
Are subqueries better than joins?
what is the functionality of the function htmlentities? : Sql dba
What is the maximum number of triggers, you can apply on a single table?
What is varray in pl sql?
how can we find the number of rows in a table using mysql? : Sql dba
What is left join example?
Explain what is sql*plus?
What does the file extension accdb stand for?
Enlist the advantages of sql.
Differentiate between pl/sql and sql?
how would you enter characters as hex numbers? : Sql dba