Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ramesh
Select * from table_name where rowid =(select min(rowid)
from tanle_name)
union
select * from table_name where rowid = (select max(rowid0
from table_name);
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How can triggers be used for the table auditing?
What is data type in sql?
explain normalization concept? : Sql dba
what are the t string functions available in tsql? : Transact sql
What are the advantages of sql? Explain
Is sql microsoft?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
Which operator is used in query for pattern matching?
Why are sql stored procedures used?
Mention what pl/sql package consists of?
What is the difference between mdf and ndf files?
How do I upgrade sql?
What is a data manipulation language?
what is sql server agent? : Sql dba
How do I start sql from command line?