Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / nitinmukhraiya
Rownum and RowID displays the results faster than others -
select * from <Table_Name> where rownum=1
union
select * from (select * from <Table_Name> order by rownum desc) where rownum=1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can we join same table in sql?
What is meant by <> in sql?
How do I run a query in pl sql developer?
What is difference between stored function and application function?
What is substitution variable?
Explain what is sql*plus?
What is trigger types in sql?
What are different clauses used in sql?
What are the types pl/sql code blocks?
Which constraints we can use while creating database in sql?
which operator is used in query for pattern matching? : Sql dba
What do you mean by field in sql?
What are the two types of exceptions.
What are the types of records?
How many types of sql are there?