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
how to handle exceptions in post production
Can we store pictures in the database and if so, how it can be done?
What are the extensions used by oracle reports?
Explain index?
How to store pictures on to the database?
how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?
What is meant by recursive hints in oracle?
What is an oracle cursor variable?
What exactly do quotation marks around the table name do?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
How to assign data of the deleted row to variables?
How many categories of data types?
Explain view?
How do you store pictures in a database?
what is reindexing?