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
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
What is the difference between local and global temporary table?
What is a column in a table?
How many aggregate functions are available there in sql?
What will you get by the cursor attribute sql%notfound?
What is auto increment in sql?
What is file based approach?
Mention what does plv msg allows you to do?
what is the difference between myisam static and myisam dynamic? : Sql dba
What are the types of index in sql?
How to use sql*plus built-in timers?
what is a foreign key ? : Sql dba
What is pl sql record in oracle?
what are all types of user defined functions? : Sql dba
What are all ddl commands?