how to retrieve 1st and last row of table without using
group functions??
Answer Posted / ajitnayak
SELECT *
FROM EMP
WHERE ROWID = (SELECT MIN(ROWID) FROM EMP)
UNION
SELECT *
FROM EMP
WHERE ROWID = (SELECT MAX(ROWID) FROM EMP)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by a database object? Can you list a few of them?
How to manage transaction isolation level?
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
What is a trigger and what are its types in oracle?
How to get execution statistics reports on query statements?
What is the order of defining local variables and sub procedures/functions?
How to drop a stored procedure in oracle?
How to use subqueries in the from clause in oracle?
How can Oracle users be audited?
Explain an exception and its types?
what is the scripts in data base?
How to write a query with a right outer join in oracle?
How to change system global area (sga) in oracle?
What is a trigger oracle?
How do I spool to a csv formatted file using sqlplus?