How do you retrieve the last N records from a table?
Answer Posted / nani
select * from emp a where &N > (select count(*) from emp b
where b.rowid > a.rowid)
N = No.of rows.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What has stored procedures in sql and how we can use it?
How can we store rows in PL/SQL using array?
Can we commit in trigger?
What is scalar data type in pl sql?
what are the advantages and disadvantages of views in a database? : Sql dba
What is bind variable in pl sql?
What is the purpose of my sql?
How many developers work on postgresql?
What is data control language (dcl)?
Does view contain data?
What is indexing in sql and its types?
What kind of join is join?
what is the difference between $message and $$message? : Sql dba
What is a full join sql?
What is interval partition?