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 / 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 is the difference between a primary key and a clustered index?

934


Can %notfound return null after a fetch?

1005


How many types of keys are there in sql?

988


How many developers work on postgresql?

917


Write a sql query to find the names of employees that begin with ‘a’?

954


What is the maximum number of columns in sql table?

1089


What is the limitation on the block size of pl/sql?

938


What is the difference between a primary key and a unique key?

1001


What are all types of user defined functions?

1006


Can you skip header records while loading? : aql loader

976


What is an inner join sql?

956


What is union, minus and interact commands?

1214


How many types of triggers are there in pl sql?

1016


What is a sql instance vs database?

1038


What are %type and %rowtype for?

1014