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 user defined functions? : Sql dba
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
Can we use ddl statements in stored procedure?
How to select 10 records from a table?
What is aggregate function in sql?
Is json a nosql?
Who is the owner of mysql database?
How do sql databases work?
What is the execution plan in sql?
Is hadoop a nosql?
What is the need of a partition key?
How do I enable sql encryption?
Where do we use pl sql?
What is procedure and function in sql?
What is varchar used for?