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
what is the command used to fetch first 5 characters of the string? : Sql dba
what is the difference between blob and text? : Sql dba
How do I trace sql profiler?
What is sql dialect?
what are the different type of sql's statements ? : Sql dba
What is auto increment in sql?
How would you convert date into julian date format?
What is a composite primary key?
What is user defined functions?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
what is a record in a database ? : Sql dba
How do you create a db file?
What is attribute indicator in pl sql?
What is coalesce sql?
Show the cursor attributes of pl/sql.