How do you retrieve the last N records from a table?
Answer Posted / a g srikanth
SELECT *
FROM emp e
WHERE 1>
(SELECT COUNT(1) FROM emp f WHERE e.rowid<f.rowid
);
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Does sql support programming?
how mysql optimizes distinct? : Sql dba
What is ttitle and btitle?
what are all different types of collation sensitivity? : Sql dba
Does db2 use sql?
What are sql functions? Describe the different types of sql functions?
What are the different ways to optimize a sql query?
What is sql query limit?
What is scope and visibility in PL/SQL?
What is using in sql?
i have some prob lem to tell me about my self in interview first round ...
What is a data manipulation language?
Does sql backup shrink transaction log?
What is sql*loader and what is it used for?
what is the difference between primary key and unique key? : Sql dba