Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / cbigmudre
(select * from table limit 0,1)
union
(select * from table order by Id desc limit 0,1)
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is query optimization in sql?
What are the different set operators available in sql?
What is where clause in sql?
What does count (*) do in sql?
Explain what is sql*plus?
Is like operator in sql case sensitive?
What is foreign key in sql with example?
how to convert numeric values to character strings? : Sql dba
How do you delete duplicates in sql query using rowid?
What is not equal in sql?
What is java sql connection?
What is parallel hint?
How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?
What are the types of functions in sql?
What is the difference between distinct and unique in sql?