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

Can we use delete in merge statement?

615


What is the maximum number of triggers, you can apply on a single table?

643


What does sql stand for?

623


How do I view a table in sql?

625


how to present a past time in hours, minutes and seconds? : Sql dba

651






What is dcl in sql?

611


What is the difference between left join and right join?

581


How many types of triggers exist in pl/sql?

648


What is the difference between a procedure and a function?

586


What's the difference between a primary key and a clustered index?

603


What is int identity in sql?

664


How do I run a sql query?

626


Why do we use cursors?

592


What is the difference between unique and primary key constraints?

666


Explain what is a view?

705