how to retrieve 1st and last row of table without using
group functions??
Answer Posted / prabhudatta
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO) WHERE
ROWNUM=1
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO DESC)
WHERE ROWNUM=1;
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What do you know about normalization? Explain in detail?
What is oracle sid?
what is the difference between data migration and production migration.
Explain an exception?
What are joins, explain all types of joins?
What are the types of partitions in oracle?
How do I call oracle stored procedures that take no parameters?
What is bulk load in oracle?
How a tablespace is related to data files?
What operating systems are supported by oracle database 10g xe?
What are the roles of dba?
What is an Oracle Instance?
Why should I use oracle database?
What is a table in oracle?
Which is better Oracle or MS SQL? Why?