how to find the First and Last Observation from the table:
Ex: OBS Name Sal Ans like: OBS Name Sal
105 E 5000--> 105 E 5000
102 B 2000 104 D 4000
103 C 3000
101 A 1000-->
104 D 4000
Answer Posted / mahendar reddy
select *from t_name where rownum=1
union
(select *from t_name
intersect
select *from t_name where rowid=(select max(rowid)from t-name));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is trigger in pl sql?
What is the purpose of a secondary key?
What are the two types of cursors in pl sql?
Explain clause in sql?
How long it takes to learn pl sql?
How to know the last executed procedure?
describe mysql connection using mysql binary. : Sql dba
What can I use instead of union in sql?
What is row_number () in sql?
What is sql stand for?
What is the difference between a primary key and a unique key?
Can we rollback delete command?
How do I enable sql encryption?
what is cross join? : Sql dba
What is pivot table in sql?