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 / priya

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

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many postgresql users are there, worldwide?

672


What is a dirty read sql?

597


What is normalization in sql?

622


How do you declare a user-defined exception?

631


Is it possible to pass parameters to triggers?

664






what is bdb (berkeleydb)? : Sql dba

673


Is there a way to automate sql execution from the command-line, batch job or shell script?

644


Why self join is used in sql?

590


Why schema is used in sql?

625


Can we use ddl statements in stored procedure sql server?

609


define join and explain different type of joins? : Sql dba

641


how to return query output in html format? : Sql dba

746


What are inner and outer joins examples of both?

576


Is it possible to create startup or shutdown trigger for on-schema?

675


What is the difference between microsoft sql and mysql?

610