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 parallel hint?
how to load data files into tables with 'mysqlimport'? : Sql dba
what are the differences between binary and varbinary? : Sql dba
List the ways to get the count of records in a table?
What are different clauses used in sql?
what is heap table? : Sql dba
What is type and rowtype in pl sql?
What are functions in sql?
What is normalisation and its types?
What is sql query optimization?
Where can I learn sql for free?
Why is there a need for sqlcode and sqlerrm variables?
How to make a copy values from one column to another in sql?
Explain 3 basic parts of a trigger.
Does user triggers have entry for trigger with compilation errors?