how to retrieve 1st and last row of table without using
group functions??
Answer Posted / rajesh
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO) WHERE
ROWNUM < 2
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO DESC)
WHERE ROWNUM < 2;
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to write date and time literals in oracle?
What is Java Pool in Oracle?
ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process
What is difference between sid and service name in oracle?
How to specify default values in insert statement using oracle?
How many categories of data types?
When system tablespace is created?
In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.
Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.
what is the scripts in data base?
Give the various exception types.
Can we write insert statement in function in oracle?
Why is oracle database so popular?
What is catalog in Oracle?
What happens if the imported table already exists?