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 / ramareddy
u don't use minum operator to count(*) in subquerry
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What does varchar include?
What is row_number () in sql?
Can two tables have same primary key?
What is sql character function?
Is hadoop a nosql?
Mention what pl/sql package consists of?
What is full join?
Define union, minus, union all, intersect ?
What is rank () in sql?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is sql entity?
What is the difference between cross join and natural join?
Does truncate require commit?
What is mutating error in pl sql?
how many sql ddl commands are supported by 'mysql'? : Sql dba