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...

i need to know how i display department which has salary >
=5000 for the below table
Department
-----------
salary deptname
1000 a
3000 a
2000 b
3000 b
4000 c
5000 c

kindly send the query to thilakvinoth13@gmail.com

Answer Posted / vinothmca21

use this,


select dept from employee group by dept having sum(salary)>=
5000

regards,
Vinoth

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is microsoft sql server?

979


Explain the purpose of indexes?

983


What is the use of set nocount on/off statement?

1098


How to delete all rows with truncate table statement in ms sql server?

1006


Explain the difference between clustered and non-clustered index?

928


How to execute a stored procedure in ms sql server?

1186


What do you know about normalization and de- normalization?

931


How you can add messages to the nt event log from within a stored procedure?

1072


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1685


How to create a dml trigger using create trigger statements?

1038


How to check status of stored procedure in sql server?

990


What is the difference between a clustered index and a non-clustered index?

991


How many instances per computer are there in sql server 2000?

1083


What is sql server schema compare? How we can compare two database schemas?

1037


What does the not null constraint do?

1103