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

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

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

490


how is exception handling handled in mysql? : Sql dba

546


What is #table in sql?

515


What are different types of indexes?

506


What is a system versioned table?

523






What is a primary key example?

509


what are the nonstandard string types? : Sql dba

597


How can I change database name in sql?

521


How can you load multi line records? : aql loader

652


Explain table and field in sql?

576


what is try_catch block in procedure

1186


What is an example of translating a date into julian format?

569


How do I enable sql encryption?

516


What is the difference between inner join and natural join?

501


Why function is used in sql?

512