Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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