I need help writing a SAS proc sql query to achieve the problem below please. The desired output is show below for reference to what is needed for the query. 6. Building Complex Queries with In-Line Views Your ultimate goal in this exercise is to create a report showing each employee's salary expressed as a percentage of the total salary for that employee's department. The report should be sorted by department and, within each department, in descending order of salary percentage. • The orion.employee_payroll table contains Salary. • The orion.employee_addresses table contains Employee_Name. • The orion.employee_organization table contains Department. Sketch of desired report: Department Accounts Accounts Accounts Employee Salaries as a percent of Department Total Employee Name Salary 58,200.00 8.6% Mea, Azavious Miller, Pamela Asta, Wendy C Department Accounts Accounts Management Administration Concession Management Engineering Percent a. Create a report aggregating the sum of all salaries for each department. The report should include Department and the sum of all associated salary values as Dept_Salary_Total. Join orion.employee_payroll and orion.employee_organization by Employee_ID to obtain the information that you need. • The orion.employee_payroll table contains salary values. • The orion.employee_organization table contains department information. Partial PROC SQL Output 53,475.00 7.9% 52,295.00 7.7% Dept_Salary_ Total 680440 397175 1009850 372225 276285

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please send me answer of this question immediately and i will give you like sure sir 

I need help writing a SAS proc sql query to achieve the problem below please. The desired output is show below for
reference to what is needed for the query.
6. Building Complex Queries with In-Line Views
Your ultimate goal in this exercise is to create a report showing each employee's salary expressed
as a percentage of the total salary for that employee's department. The report should be sorted
by department and, within each department, in descending order of salary percentage.
• The orion.employee_payroll table contains Salary.
• The orion.employee_addresses table contains Employee_Name.
• The orion.employee_organization table contains Department.
Sketch of desired report:
Employee Salaries as a percent of Department Total
Employee Name
Salary
58,200.00
Department
Accounts
Accounts
Accounts
Mea, Azavious
Miller, Pamela
Asta, Wendy
a. Create a report aggregating the sum of all salaries for each department. The report should include
Department and the sum of all associated salary values as Dept_Salary_Total. Join
orion.employee_payroll and orion.employee_organization by Employee_ID to obtain
the information that you need.
Department
• The orion.employee_payroll table contains salary values.
• The orion.employee_organization table contains department information.
Partial PROC SQL Output
Percent
8.6%
53,475.00 7.9%
52,295.00
7.7%
Accounts
Accounts Management
Administration
Concession Management
Engineering
Dept Salary_
Total
680440
397175
1009850
372225
276285
Transcribed Image Text:I need help writing a SAS proc sql query to achieve the problem below please. The desired output is show below for reference to what is needed for the query. 6. Building Complex Queries with In-Line Views Your ultimate goal in this exercise is to create a report showing each employee's salary expressed as a percentage of the total salary for that employee's department. The report should be sorted by department and, within each department, in descending order of salary percentage. • The orion.employee_payroll table contains Salary. • The orion.employee_addresses table contains Employee_Name. • The orion.employee_organization table contains Department. Sketch of desired report: Employee Salaries as a percent of Department Total Employee Name Salary 58,200.00 Department Accounts Accounts Accounts Mea, Azavious Miller, Pamela Asta, Wendy a. Create a report aggregating the sum of all salaries for each department. The report should include Department and the sum of all associated salary values as Dept_Salary_Total. Join orion.employee_payroll and orion.employee_organization by Employee_ID to obtain the information that you need. Department • The orion.employee_payroll table contains salary values. • The orion.employee_organization table contains department information. Partial PROC SQL Output Percent 8.6% 53,475.00 7.9% 52,295.00 7.7% Accounts Accounts Management Administration Concession Management Engineering Dept Salary_ Total 680440 397175 1009850 372225 276285
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
SQL Query
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education