I want to know last five transactions or records from emp
table, from now?
Answer Posted / vasanth
HI,
Include equal to (=) in that query:
select *
from temp_search
minus (select *
from temp_search
where rownum <= (select count(*) - n from
temp_search))
Another example:
select xx.*
from (select rownum rr, a.* from temp_search a) xx
where xx.rr > (select count(1) - n from temp_search)
*- n : no of last tranactions
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Is sql considered coding?
What is a unique constraint?
What are %type and %rowtype for?
What is insert command in sql?
What does select top 1 do in sql?
What are transaction and its controls?
Explain ddl statements in pl/sql?
Explain the insert into statements in sql?
What is a database? Explain
How do you rank data in sql?
How long it takes to learn pl sql?
When sql appeared?
What is error ora-01000: maximum open cursors exceeded
How to run sql commands in sql*plus?
What is implicit cursor in pl sql?