Find total salary of all computer department employees.
sql>select sum(employee.salary),dept_name from department,employee where department dept_no=employee.dept_no and dept_name='computer'group bt dept_name;
Find the name of department whose salary is above 10000.
sql>select dept_name,salary from department,department where department.dept_no=employee.dept_no and salary>10000;
Count the number of employees in each department.
sql>select count(emp_no),dept_name from department,employee where department.dept_no=employee dept_no group by dept_name;
Display department wise employee list.
sql>select emp_name,dept_name from department,employee where department.dept_no=employee.dept_no;
/