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
When should you use an instead of trigger?
What is indexing and its types?
Can we write trigger for view?
Difference between DELETE and TRUNCATE?
What is the purpose of optimization?
What is dbcc command in sql server?
List out the difference between union and union all in sql server?
what type of index will get created after executing the above statement? : Sql server database administration
What is sql service broker?
What is a partition key?
What is difference between rownum and rowid?
You want to implement the one-to-many relationship while designing tables. How would you do it?
Explain the difference between HTTP and HTTPS in database?
What is a ddl statement?
How to return the top 5 rows from a select query in ms sql server?