Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / chandana
select * from table_name
where rowid in ((select min(rowid) from table_name),
(select max(rowid) from table_name));
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Why do we use joins in sql?
what is schema? : Sql dba
How do I edit a stored procedure?
Explain the uses of control file.
What is difference between joins and union?
What is trigger types of trigger?
Describe sql comments?
Explain cursor types?
What is a behavioral trigger?
What is nvarchar in sql?
What is the advantage of index in sql?
what is union, minus and interact commands? : Sql dba
explain mysql aggregate functions. : Sql dba
What is not null in sql?
List and explain the different types of join clauses supported in ansi-standard sql?