You have a table Employee(empID,name,salary,dno). Dno is department number to which employee belongs. What is the SQL statement used to find the total of salaries payed for all employees for each department?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question
You have a table Employee(empID,name,salary,dno). Dno is department
number to which employee belongs. What is the SQL statement used to find
the total of salaries payed for all employees for each department?
Select one:
O a. select total(salary) from employee group by dno;
O b. select total(salary) from employee;
Oc. select sum(salary) from employee group by dno;
O d. select sum(salary) from employee;
Transcribed Image Text:You have a table Employee(empID,name,salary,dno). Dno is department number to which employee belongs. What is the SQL statement used to find the total of salaries payed for all employees for each department? Select one: O a. select total(salary) from employee group by dno; O b. select total(salary) from employee; Oc. select sum(salary) from employee group by dno; O d. select sum(salary) from employee;
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning