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 is pls integer?
What is the difference between truncate and drop statements?
what are numeric data types? : Sql dba
How to write html code in pl sql?
What is the use of function "module procedure" in pl/sql?
What is the sql case statement?
What is self-join and what is the requirement of self-join?
How much does a sql dba make? : SQL DBA
Explain foreign key in sql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
Is record in oracle pl sql?
How do I debug a stored procedure?
What is null in pl/sql?
How can we debug in PL/SQL?
How do you concatenate in sql?