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
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
How to commit the current transaction in oracle?
What is the difference between truncate & delete command?
Explain database link?
How would you go about verifying the network name that the local_listener is currently using?
How to drop a stored procedure in oracle?
Explain an extent?
What is system tablespace?
Explain the characteristics of oracle dba?
What privilege is needed for a user to query tables in another schema?
6. Display the client name and order date for all orders using the traditional method.
What is open database communication (odbc) in oracle?
What do you understand by a database object? Can you list a few of them?
What is an oracle and why it is used?
How to start a new transaction in oracle?