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
State few characteristics of pl/sql?
What is procedure explain with example?
What does the file extension accdb stand for?
How to display Row Number with Records in Oracle SQL Plus?
How to run pl sql program in mysql?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
what is normalization? : Sql dba
What is an exception in PL/SQL? What are the two types of exceptions?
What are the most important characteristics of pl/sql?
How do temporal tables work?
What is the purpose of the sql select top clause?
How can check sql version from command line?
how to convert character strings to dates? : Sql dba
how many groups of data types? : Sql dba
What is rownum and rowid?