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
How do I create a memory optimized filegroup?
What is sql integrity?
What is vector point function?
How do you write an inner join query?
Is stored procedure faster than query?
what is the syntax for using sql_variant_property? : Transact sql
When are we going to use truncate and delete?
Why do we use function in pl sql?
What are the three forms of normalization?
What is program debugging?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
What are local and global Indexes and where they are useful.
how to select first 5 records from a table? : Sql dba
what is oltp (online transaction processing)? : Sql dba
What is the difference between distinct and unique in sql?