write a query to find out the no. of employees whose age is
less than 25 and max of salary for the employees belonging
to a particular department is less than 20000

Answer Posted / vikneswaran thangarasu

Ignore my previous post. it is wrong.

select dept,count(emp),max(sal) from employee where age <25
group by dept having max(sal) <20000

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is try_catch block in procedure

1186


What are commit, rollback, and savepoint?

566


Can we use delete in merge statement?

511


Can %notfound return null after a fetch?

581


What is trigger with example?

556






What is a dynamic query?

565


What is sql keyword?

550


Which is faster count (*) or count 1?

532


How to pronounce postgresql?

572


Explain alias in sql?

579


Define tables and fields in a database

640


What is difference between hql and sql?

501


What is the difference between in and between in sql?

571


What is an escape character in sql?

558


What is the difference between sql and mysql?

545