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
is mysql query is case sensitive? : Sql dba
what is the difference between myisam static and myisam dynamic? : Sql dba
How would you convert date into julian date format?
How do I get sql certification?
how to check myisam tables for errors? : Sql dba
how can you create an empty table from an existing table? : Sql dba
What is auto increment?
What is not equal in sql?
What are three advantages to using sql?
What are actual parameters and formal parameters?
what are wild cards used in database for pattern matching ? : Sql dba
How can we make an if statement within a select statement?
How do you go back in sql?
Is delete faster than truncate?
Which is better cte or subquery?