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 / arjun
select * from tablename where rowid=1
union
( select * from tablename
intersect
select * from tablename where rowid = ( select max(rowid)
from tablename));
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What problem one might face while writing log information to a data-base table in pl/sql?
What makes a good primary key?
How we can update the view?
What is meant by truncate in sql?
What happens when a trigger is associated to a view?
What are the differences between implicit and explicit cursors?
Is there a 64 bit version of ssms?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
What is write ahead logging in sql server?
How many parts of a pl sql block are optional?
what is rollback? : Sql dba
what is primary key? : Sql dba
Which table is left in left join?
How do I view stored procedures?
What are the differences between in and exists clause?