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 is the exact use of Collections?
How to rename an existing table?
How to create a temporary table in oracle?
What is an oracle function?
What are the parameters that we can pass through a stored procedure?
What is bulk load in oracle?
What is the difference between substr and instr?
How to delete all rows a table in oracle?
What is system tablespace?
How to connect to a remote server?
How to resolve the ORA-39133 error in Oracle?
What are group functions in oracle?
How translate command is different from replace?
Explain the dml?
What is set operator oracle?