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 sql considered coding?
how many columns can be used for creating index? : Sql dba
What are different functions in sql?
What is normalization in a database?
How to check if a column is nullable before setting to nullable?
what is meant by urlencode and urldocode? : Sql dba
Explain the the update statement in sql?
Explain architecture of sql server notification services?
What is the syntax and use of the coalesce function?
What program will open a mdb file?
what is timestamp in mysql? : Sql dba
Is coalesce faster than isnull?
How do I run a script in sql developer?
what is 'mysqlshow'? : Sql dba
explain the options of myisamchk to improve the performance of a table. : Sql dba