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 / arvind kumar
select * from employees minus select * from employees where
rownum < (select count(*)-2 from employees);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does sql backup shrink transaction log?
Why we use triggers in mysql?
Explain what is table in a database?
How do I create an index in word?
Is sql a case sensitive language?
What is indexing in sql and its types?
how to do backup entire database? : Transact sql
What are the different set operators available in sql?
What does desc stand for?
what is a database lock ? : Sql dba
Is time a data type in sql?
What are the possible values that can be stored in a boolean data field?
Which query operators in sql is used for pattern matching?
Is crud a cuss word?
How do you declare a constant?