I want to know last five transactions or records from emp
table, from now?
Answer Posted / sidhu
For ex: emp table, we want last five transaction in emp
select * from emp
minus
select * from emp where rownum <= (select count(*)-&n from emp);
this will work and give the value 5 it will return last five transacitons.
hope this helpful
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does (+) mean in sql joins?
explain normalization concept? : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
Why self join is used in sql?
How do I partition a table in sql?
Can we use join in subquery?
what are set operators in sql? : Sql dba
how would you enter characters as hex numbers? : Sql dba
what is the difference between union and union all? : Sql dba
Explain two easy sql optimizations.
explain the options of myisamchk to improve the performance of a table. : Sql dba
What are the built in functions of sql?
How can you know that statistics should be updated?
Can sql developer connect to db2?
How do I run a sql trace?