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


Please Help Members By Posting Answers For Below Questions

Is sql free?

510


Explain table and field in sql?

599


Why join is faster than subquery?

615


what happens if null values are involved in expressions? : Sql dba

577


What are all the different normalization?

570






What are the qualities of 2nf?

555


Define a temp table?

566


What is the maximum size of sqlite database?

556


what are enums used for in mysql? : Sql dba

622


How many columns should be in an index?

532


Why do we use procedures in pl sql?

527


What are the types of triggers in sql?

509


How do I view output in sql developer?

588


Explain the the delete statements in sql?

585


Explain what is dbms?

589