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
How do I view an execution plan in sql?
List different type of expressions with the example.
Is it possible to sort a column using a column alias?
What is sql select statement?
Does sql support programming?
Explain the commit statement.
What is sql and db2?
What is difference between left and right outer join?
Describe types of sql statements?
Is sql a scripting language?
What is the difference between view and stored procedure?
What are the commands used in sql?
How do we use distinct statement? What is its use?
what is a composite key ? : Sql dba
How do you delete data from a table?