how to retrieve 1st and last row of table without using
group functions??
Answer Posted / nathan
SELECT *
FROM (SELECT emp.*, ROWNUM rn
FROM emp)
WHERE rn = 1 OR rn = (SELECT COUNT (*)
FROM emp);
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How is it different from a normal table?
How to speed up webrick?
What is the implicit cursor in oracle?
Explain constraining triggers.
Explain drop constraint oracle?
How do I limit the number of oracle database connections generated by weblogic server?
How to select some columns from a table in oracle?
What is the difference between PFILE and SPFILE in Oracle?
How to use regular expression in pattern match conditions in oracle?
What happens if variable names collide with table/column names?
What is the difference between translate and replace?
Why oracle is used?
What is the difference between postgresql and oracle?
Explain what are the advantages of views?
What are the common oracle dba tasks?