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
How to use transactions efficiently : transact sql
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
Why we use pl sql?
Can I learn sql in a week?
What is sqlca in powerbuilder?
What is a temporal table?
How do you create a unique index?
Which join is like inner join?
hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews
What is the size of partition table?
What is the difference between python and sql?
Can one improve the performance of sql*loader? : aql loader
what is an index? : Sql dba
Is natural join and inner join same?
Can we join same table in sql?