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

How will you monitor replication latency in transactional replication? : sql server replication

1089


What are different types of data sources?

937


Write an sql query to find first weekday of the month?

867


What is policy based management (pbm)? : sql server database administration

931


How do I view a stored procedure in sql server query?

889


What is a view and what are its advantages?

1055


What different steps will a sql server developer take to secure sql server?

932


What are the 10 characteristics of data quality?

902


What does COMMIT command do?

1008


How to execute stored procedure in select statement sql server?

988


Do you know what is xpath?

1004


how will add additional conditions in sql?

1017


How to create an multi-statement table-valued function?

942


What is CTE in SQL

876


Any one plz send me SQL Server Developer/DBA resume for 4 years experience

2668