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 / ajit

SELECT MIN(Obs)
FROM <Table_name>
UNION ALL
SELECT MAX(Obs)
from <Table_name>;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between left and left outer join?

524


What are the different types of functions in sql?

523


What is the purpose of the sql select top clause?

561


What is a temp table?

578


How do I remove sql plus from windows 10?

578






What are sql commands?

511


Why do we need unique key in a table?

535


Explain the difference between 'between' & 'and' operators in sql

537


What is normalization in sql?

533


What is cascade in sql?

567


What is sql constant?

518


Can %notfound return null after a fetch?

604


What is sql in java?

557


What is the usage of sql functions?

558


Can delete statement be rollbacked?

535