write a query to Find the Maximun second value in table?

Answer Posted / tulasi

select * from emp x where 2=(select count(distinct sal)
from emp y where x.sal<=y.sal);

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by Correlated subquery in database?

521


Which is better saving files in database or in file system?

472


what are parameter, we can check after creating a database in terms of QC and for each tables what should be the parameters for QC and QA?

2188


Which is fastest database?

480


Which is best database?

486






Which database is good for large data?

481


What is local database?

537


Which is the best database?

496


Which database is best for storing images?

481


What is data model and types?

518


Which database is best for large data?

487


What is limit in dbms?

472


What is the best free database software?

451


What is distributed queries?

520


Is it possible to declare or create a cursor for update of table? If no tell me why?

473