How to retrieve first and last records from a table?
Answer Posted / naveen
SELECT * FROM EMP WHERE ROWID IN(SELECT MIN(ROWID) FROM EMP)
UNION ALL
SELECT * FROM EMP WHERE ROWID IN(SELECT MAX(ROWID) FROM EMP);
Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
How to define a data field as not null?
What is literal?
How to select some rows from a table in oracle?
Difference between oracle's plus (+) notation and ansi join notation?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
Name the various constraints used in oracle?
How to grant create session privilege to a user in oracle?
How to create a stored procedure in oracle?
Explain the use of analyse option in exp command.
Hi friends can u send the oracle 9i full version download link?????????????? please reply ?
What is the Tune Query
How to display row numbers with the records?
What to do if the binary spfile is wrong for the default instance?
Can we commit inside a function in oracle?
What is index in Oracle?