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 / shailesh jori

select * from table_name where rowid=(select min(rowid) from table_name) or rowid=(select max(rowid) from table_name)

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between count 1 and count (*) in a sql query?

667


What is character functions?

745


what are the drivers in mysql? : Sql dba

736


What is the use of count (*) in sql?

754


What are the two types of exceptions.

824






Is sql a backend language?

845


What is trigger types of trigger?

721


What is left join in sql?

753


what tools available for managing mysql server? : Sql dba

745


define sql delete statement ? : Sql dba

745


what are the differences between char and nchar? : Sql dba

798


How will you distinguish a global variable with a local variable in pl/sql?

844


What does sql stand for?

704


Can we call procedure in select statement?

732


What is server name sql?

804