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 roles of dba?
Point the difference between translate and replace?
How to do clean up if create database failed?
What are advantages of dateset in datastage?
How do I escape a reserved word in oracle?
What are the different types of database objects?
Explain view?
What is bind variable in oracle 11g?
How to retrieve values from data fields in record variables?
How to call a stored function with parameters?
Explain do view contain data?
What is the use of oracle?
What is a snapshot log?
What is an oracle?
How to create a new tablespace in oracle?