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
how many values can the set function of mysql take? : Sql dba
How do you break a loop in pl sql?
What are the types of views in sql?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
What is the need of a partition key?
What are sql queries used for?
How do I make my sql query run faster?
How do I add a database to sql?
What is cursor explain with example?
What are the limitations of sql express?
How does sql profiler work?
What is sql used for?
how to get a list of all tables in a database? : Sql dba
What is procedure and function?
How to read/write files from pl/sql?