Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / gourav
select * from employees
where employee_id=100
union
select* from employees
where employee_id=206;
Example
first coulumn_ id(100)
last column _id(206)
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is attribute indicator in pl sql?
How do I partition a table in sql?
What is the difference between delete and truncate statement in sql?
what is the difference between truncate and delete statement? : Transact sql
What are the string functions in sql?
What is the difference between inner join and natural join?
what is rollback? : Sql dba
What is use of trigger?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
Which are sql * plus commands?
State few characteristics of pl/sql?
What are the methods of filing?
What is schema in sql?
What is a pl/sql block?
what are the differences among rownum, rank and dense_rank? : Sql dba