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
If a cursor is open, how can we find in a pl/sql block?
What are tables in sql?
How to get unique records from a table?
What is a design view?
Why is the cursor important?
What are the constraints available in sql?
What is the difference between the implicit and explicit cursors?
What is rank () in sql?
Does access use sql?
what is a stored procedure? : Sql dba
how do you know the version of your mysql server? : Sql dba
What is the difference between a primary key and a clustered index?
How many aggregate functions are available there in sql?
How is use pl and sql?
How many types of relationship are there?