how to retrieve last tree records from table?
select *from emp where rownum > (select count(*)-3 from
emp);
i am using this query to get last three records from table
but its not giving any output, so please tell me what is the
error in this query.
Answer Posted / pavithra
select * from emp where rowid in(select rowid from emp
where rownum<=&upto minus select rowid from emp where
rownum<&start)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
Which are the different types of indexes in sql?
What is the use of index in sql?
What are the triggers associated with image items?
What is a design view?
What is online transaction processing (oltp)?
Why do we use joins in sql?
What is normalisation in sql?
What is a temp table?
Is hadoop a nosql?
What is anonymous block in sql?
what are the advantages of mysql in comparison to oracle? : Sql dba
explain access control lists. : Sql dba
what is the difference between primary key and unique key? : Sql dba
What is the life of an sql statement?