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
Why do we use %rowtype & %type in plsql?
What are the uses of sysdate and user keywords?
What is multiple columns?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
What are different types of functions in sql?
Why is a trigger used?
What is the starting oracle error number? What is meant by forward declaration in functions?
what are the advantages of mysql in comparison to oracle? : Sql dba
what is the difference between char and varchar data types? : Sql dba
what is a foreign key ? : Sql dba
Can I join the same table twice?
Are null values same as that of zero or a blank space?
Are sql database names case sensitive?
What is bind variable in pl sql?
Does truncate table reset auto increment?