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 the properties of a transaction?

1186


Show how functions and procedures are called in a pl/sql block.

1188


What is an implicit commit?

1104


What is the difference between delete, truncate and drop command?

1228


What is the difference between microsoft access and sql?

1076


Explain the advantages and disadvantages of stored procedure?

1199


How to create your own reports in sql developer?

1066


what is view? : Sql dba

1029


Can we create table inside stored procedure?

1016


What is primary key and foreign key?

1014


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1164


When to use inner join and left join?

1019


How do I truncate a word?

1163


Show the two pl/sql cursor exceptions.

1263


Is sql an operating system?

1075