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 right join sql?

616


What is procedure function?

627


What are the steps for performance tuning.

933


What is a relationship and what are they?

681


Why function is used in sql?

606






Is join an inner join?

634


What are the advantages of sql?

671


What is sql server and ase?

627


What is the difference between microsoft access and sql server?

610


How do I find duplicates in two columns?

656


What does the file extension accdb stand for?

637


What is a temp table?

663


What is sqlerrd?

616


What is benefit of creating memory optimized table?

616


What does the argument [or replace] do?

677