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 / khushbu patel

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

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %type in pl sql?

536


What is the purpose of a secondary key?

502


Explain what is a subquery ?

650


What is the most important ddl statements in sql are?

519


How many types of indexes are there in sql?

533






What is the difference among union, minus and intersect?

539


what is the command line end user interface - mysql? : Sql dba

496


Explain the working of foreign key?

539


Does execute immediate commit?

688


What are actual parameters and formal parameters?

560


What is the difference between sql and mysql?

545


What is the difference between function, procedure and package in pl/sql?

556


What is primary key in db?

513


What is sql comments?

646


What are the syntax and use of the coalesce function?

546