Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are expressions?

1017


How do you determine the current isolation level? : Transact sql

1161


What is a string data type in sql?

1046


How to display the records between two range in Oracle SQL Plus?

1148


What can you do with pl sql?

1097


What are all the different types of indexes?

1149


Why are sql stored procedures used?

1060


Does oracle roll back the transaction on an error?

1017


What is trigger in pl sql?

1004


What are the various levels of constraints?

1126


What is an emotional trigger?

1005


Which is better cte or subquery?

1031


Write a query to display the current date in sql?

1025


Why do we need cursor in pl sql?

1138


What do you understand by exception handling in pl/sql?

1035