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
What is normalization in sql?
what happens if you no create privilege in a database? : Sql dba
What is a dirty read sql?
how to convert numeric values to character strings? : Sql dba
how to write date and time literals? : Sql dba
Explain how exception handling is done in advance pl/sql?
What is left join in postgresql?
How bulk collect improves performance?
Why do we need databases?
Is a view faster than a stored procedure?
What is an inconsistent dependency?
Enlist the characteristics of pl/sql?
What are tables in sql?
Differentiate between pl/sql and sql?
explain access control lists. : Sql dba