Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ashwani kumar singh
SELECT * FROM EMP WHERE ROWNUM < 2
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMPNO DESC )
WHERE ROWNUM < 2
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is sql a dbms?
What is clustered and nonclustered index in sql?
What is numeric function sql?
what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
Which constraints we can use while creating database in sql?
Is and as keyword in pl sql?
What is cartesian join in sql?
Explain character-manipulation functions?
Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com
How do I create a sql database?
What does the acronym acid stand for in database management?
Why are sql stored procedures used?
What is java sql driver?
How is sql used in oracle?
What is nvl?