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 is an oracle data file?
Can we write dml statement in function in oracle?
How do I manually create a database in oracle?
How to sort the query output in oracle?
What is an oracle cursor variable?
How to find out what oracle odbc drivers are installed?
Can I create users through internet explorer in oracle 10g?
What are temporal data types in oracle?
Is a rollback possible to any savepoint?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
Explain the use of grant option in imp command.
11. Display the client number and name and the client number and name of the person who referred that client.
How to count duplicated values in a column in oracle?
What is difference between sid and service name in oracle?
Can we protect our pl/sql source code?