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 primary key secondary key alternate key candidate key?
How can I tell if sql is running?
How is use pl and sql?
How do I run a script in sql developer?
what are myisam tables? : Sql dba
Which command is used to delete a package?
What is difference between nchar and nvarchar?
What is the sql*loader? : aql loader
Is inner join same as self join?
Why use stored procedures?
How do I make sql search faster?
How does a covering index work?
What is difference between pl and sql?
Is sql open source?
Why do we use joins in sql?