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
List out the components of logical database structure of oracle database.
How to load data from external tables to regular tables?
What is partitioned table in Oracle?
What is oracle analytical function?
What is using clause and give example?
Explain implicit cursor.
What happens if you use a wrong connect identifier?
material view and view disadvantages?
How to define a variable of a specific record type?
1) Does oracle have any table which contain all the exceptions and it's code internally?
1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.
Please explain drop constraint oracle?
How to write date and time interval literals in oracle?
What is a trigger and what are its types?
How to select an oracle system id (sid)?