how to retrieve 1st and last row of table without using
group functions??
Answer Posted / nathan
SELECT *
FROM (SELECT emp.*, ROWNUM rn
FROM emp)
WHERE rn = 1 OR rn = (SELECT COUNT (*)
FROM emp);
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are data pump export and import modes?
How to get a list of all user accounts in the database?
In what script is snap$ created? In what script is the scott/tiger schema created?
When system tablespace is created?
What is the data type of dual table?
How can Oracle users be audited?
Is rowid unique in oracle?
What is sequence?
Describe varray?
How do we display rows from the table without duplicates?
How to list all tables in your schema?
Is there a function to split a string in plsql?
What is a tns file?
How to select some columns from a table in oracle?
Explain joins in oracle?