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
What is sql partition?
What is the use of double ampersand (&&) in sql queries? Give an example
What is sql rowcount?
What is rollback?
What are the types of operators available in sql?
what is datawarehouse? : Sql dba
Are subqueries better than joins?
What is a parameter query?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
What is the difference between a database and a relational database?
Explain the difference between sql and mysql.
Do we need to rebuild index after truncate?
What is the difference between instead of trigger and after trigger?
Why we use pl sql?
What is trigger in sql? Explain