Query to get max and second max in oracle in one query ?
Answer Posted / mehul
select max(sal) from emp where sal not in ( select max(sal)
from emp)
Is This Answer Correct ? | 29 Yes | 12 No |
Post New Answer View All Answers
Can we protect our pl/sql source code?
i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?
How to name query output columns in oracle?
hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards
How remove data files before opening a database?
How do you store pictures in a database?
How to create a new user account in oracle?
What are the attributes of cursor?
Explain index?
What is a user account in oracle?
Explain about functional dependency and its relation with table design?
How to bring a tablespace online?
What are the general rules on data consistency?
What is connection pooling in oracle?
What are the attributes of the cursor?