How do you retrieve the last N records from a table?
Answer Posted / ajit
SELECT RN, Ename
FROM ( SELECT Rownum RN, Ename
FROM Emp )
WHERE RN = &Grecno;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the syntax used for partition in tsql? : Transact sql
What are secondary keys?
What is a temporal data type?
Describe different types of general function used in sql?
How do I quit sql?
define sql insert statement ? : Sql dba
What is rownum and rowid?
what is the difference between delete and truncate statement in sql? : Sql dba
What is lookup table in sql?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
Is delete faster than truncate?
Why is sharding used?
what are string data types? : Sql dba
Can we insert in sql function?
How do you bind variables in pl sql?