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 / mahendar reddy
select *from t_name where rownum=1
union
(select *from t_name
intersect
select *from t_name where rowid=(select max(rowid)from t-name));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which sql statement is used to return only different values?
What is cursor and its types?
How do I make my sql query run faster?
How to return an array from java to pl/sql?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
Is it possible to create the following trigger: before or after update trigger for each row?
What are transaction and its controls?
What are string functions in sql?
What is denormalization in a database?
what is normalization? : Sql dba
Why is a primary key important?
What does the sign mean in sql?
How to run sql statements with oracle sql developer?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is the use of index in hive?