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 a data definition language?
Can we call procedure in select statement?
In what condition is it good to disable a trigger?
What is pl/sql table? Why it is used?
What is an ndf file?
What is sql lookup?
How many aggregate functions are available there in sql?
what is meant by nl2br()? : Sql dba
Does sql require a server?
What is a scalar value in sql?
How to use transactions efficiently : transact sql
Is drop table faster than truncate?
What is recursive join in sql?
i have some prob lem to tell me about my self in interview first round ...
When is a declare statement required?