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
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
What is connection pooling in oracle?
Explain oracle instance.
What are the differences between primary key and unique key?
Explain the blob datatype?
How to use regular expression in pattern match conditions in oracle?
Explain temporal data types in oracle
How to start a new transaction in oracle?
How can windows applications connect to oracle servers?
How to export data to a csv file?
How to pass parameters to procedures in oracle?
How to Truncate Table in Oracle
What is materialized view in Oracle?
What is a directory object?
What is hash cluster in oracle?