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

Can we call procedure in select statement?

514


Is delete faster than truncate?

537


What is a constraint? Tell me about its various levels.

634


What are the types of views in sql?

534


Why do we use partitions in sql?

540






Explain two easy sql optimizations.

598


What are the indexing methods?

569


Why procedure is used in sql?

527


How to get unique records from a table?

514


What are character functions in sql?

490


Does sql support programming?

545


Is pl sql and postgresql same?

563


How do you truncate?

498


What is t sql used for?

548


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1136