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

How do you bind variables in pl sql?

1036


Mention what are the benefits of pl/sql packages?

1001


Why do we use procedures in sql?

1028


Does sql backup shrink transaction log?

919


What is the best free sql database?

1001


Is subquery faster than join?

953


What are all the different types of indexes?

1093


What do you think about pl/sql?

951


Explain the purpose of %type and %rowtype data types with the example?

929


What is sql partition?

1038


What is identity column in sql server?

988


How do you declare a constant?

911


Which command is used to call a stored procedure?

954


What is information schema in sql?

1017


what is the difference between nested subquery and correlated subquery?

989