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
What are the types of variables use in pl sql?
what are the properties and different types of sub-queries? : Sql dba
How to raise user-defined exception with custom sqlerrm ?
how to create a new table by selecting rows from another table in mysql? : Sql dba
what are the differences between char and varchar? : Sql dba
What is sap sql?
What is sql mysql pl sql oracle?
What are field types?
What is varray in pl sql?
Which language is used in sql?
How does index help in query performance?
Which is better varchar or nvarchar?
Can we use threading in pl/sql?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
How do I save a stored procedure?