adspace


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

Equi join and non equi join is possible with sql server?

1134


Can one drop a column from a table?

1088


How to rebuild the master database?

1165


What is self contained sub query?

1139


What are the source of constraints?

1008


How efficient you are in oracle and SQL server?

1256


What is clustered index

1085


What is a view in sql?

1039


What is an indexed view?

1021


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1046


What is the primary use of the model database?

1147


Why use identity in sql server?

1197


When should you use an instead of trigger?

1051


Does view occupy space?

1018


Where can you add custom error messages to sql server?

1209