How to retrieve first and last records from a table?
Answer Posted / naveen
SELECT * FROM EMP WHERE ROWID IN(SELECT MIN(ROWID) FROM EMP)
UNION ALL
SELECT * FROM EMP WHERE ROWID IN(SELECT MAX(ROWID) FROM EMP);
Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
What are the types of trigger in oracle?
Why do we need oracle client?
How does one get the view definition of fixed views/tables?
What are a cluster and non-cluster index?
What is oracle database client?
Differentiate between translate and replace?
How to convert csv to table in oracle?
How to join two tables in a single query using oracle?
How many types of cluster table in Oracle?
What are the advantages of oracle 12c?
What is query image?
What is program global area (pga) in oracle?
Why oracle is used?
Why does oracle 9i treat an empty string as null?
What suggestions do you have to reduce the network traffic?