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 a correlated sub-query? : Sql server database administration

673


What are the different Topologies in which Replication can be configured?

856


How to throw custom exception in Stored Procedure?

762


Do you know the cursor types?

836


Do you have any idea about the tcl commands?

713






You want to use a perspective in an mdx query. How do you select the perspective?

185


What are the acid properties?

719


Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

671


What is function of ROLLUP ?

801


Explain raiserror in sql server?

749


What are the encryption mechanisms in sql server?

732


What are page splits? : SQL Server Architecture

742


What are the types of indexes?

768


What is a self join in sql server?

777


Do you know what are the properties of the relational tables?

785