Description
MIS 610 Topic 3 UNIONS and Subqueries GCU
The purpose of this assignment is to practice UNIONS and to use subqueries to analyze data in a record set.
For this assignment, you will analyze data to find similarities and UNION all data via a method that keeps the data uniform. You will use Microsoft SQL Server 2016 Developer Edition and the content from the AdventureWorks 2016 and Scripts for SQL Server 2016 CTP3 to complete the assignment.
Please note that when SQL queries are run, results are generated in the form of data. This data should be exported and saved to Excel for a visual check of accuracy.
Create a Word document that includes the SQL queries used to explore the database tables, and answer the following questions.
Query Scenarios
Problem One
As part of a yearly fundraising effort for the community, your manager has given you an Excel worksheet titled “Donations.” It includes all employees’ pledged donations for the year. The sheet consists of three tabs that correspond to the 3 months when employees were asked to submit pledges. Load this file into the AdventureWorks database through the Import and Export Wizard. Once loaded, use a UNION ALL statement to combine the three data sets into a temporary table called “#TotalDonations.”
Problem Two
Redoing the UNION ALL statement you created in Problem One, create a temporary table looking exclusively at “SUM of Donations by Month.” Title each of the three fields “Donations and Month” with the temporary table titled “#DonationsbyMonth.” When complete, provide the total of the final amount of donations raised.
Problem Three
Your manager e-mails you about the final results you provided in Problem Three, and believes you must have made a mistake when calculating the total donations. The amount is $100.00 less than the total amount calculated by the manager. The manager thinks it is possible that one employee might have accidently pledged $100.00 twice. Explain how this event might occur with a UNION ALL. Review the UNION ALL, and if there is an error, rewrite the first query with a UNION statement. Discuss whether the manager’s assumption was correct and explain why.
Problem Four
You receive an e-mail request from Human Resources requesting information about the last time a pay rate was changed for an employee. The employee’s “NationalIDNumber” is 486228782. Develop a subquery instead of an INNER JOIN to provide the answer to this request.
Note: A subquery is another method of writing a JOIN. It can be efficient when used at the correct times.
General Requirements
Compile the Excel data file and Word document containing the SQL queries and answers to the questions into a .zip file and submit to your instructor.
APA style is not required, but solid academic writing is expected.
This assignment uses a rubric. Please review the rubric prior to beginning the assignment to become familiar with the expectations for successful completion.
You are not required to submit this assignment to LopesWrite.
Course Tutor helps in providing the best essay writing service. If you need 100% original papers for MIS 610 Topic 3 UNIONS and Subqueries GCU, then contact us through call or live chat.
MIS 610 Topic 3 UNIONS and Subqueries GCU
![Best MIS 610 Topic 3 UNIONS and Subqueries GCU](http://coursetutor.us/wp-content/uploads/2018/05/eb-10.png)
ACCT 553 DeVry, BIAM 500 DeVry, CIS 500 STR, CIS 558 STR, ENG 105 GCU, FIN 390 DeVry, FIN 504 GCU, HCA 545 GCU, HCA 699 GCU, HLT 306 GCU, HLT 362 GCU, HLT 555 GCU, HLT 610 GCU, HLT 665 GCU, HOSP 594 DeVry, HRM 600 DeVry, MAT 144 GCU, MGMT 600, MGT 599 STR, MGT 655 GCU, MKT 373 GCU, PSY 362 GCU, PSY 565 GCU, PSY 575 GCU, PSY 665 GCU, SOC 102 GCU, SOC 320 GCU, SOC 372 GCU, SOC 412 GCU, NSG 6440 SU, HIM 515 GCU, NSG 4029 SU, HIM 615 GCU, NSG 3029 SU, NSG 4055 SU, NSG 6630 SU, NSG 6005 SU, CRMJ 310, PSY 510 GCU, CRMJ 300 Devry, CRMJ 425, SPD 200 GCU, HLT 490 GCU ,ECH 340 GCU , ECH 440 GCU , ECH 355 GCU ,ECH 350 GCU ,LDR 461 GCU ,ECH 425 GCU ,REL 212 STR ,SCI 115 STR ,CIS 505 STR ,JUS 652 GCU, MGT 640 GCU, CIS 527 STR, SOC 436 GCU,ACC 502 GCU, FIN 504 GCU ,MATH 260 DeVry ,ETHC 445 DeVry ,ECET 220 DeVry , CARD 405 DeVry, NETW 203 DeVry, NETW 205 DeVry, ECET 365 DeVry ,MATH 270 DeVry ,PHYS 310 DeVry, BIB 106 GCU ,CIS 512 STR ,SYM 506 GCU ,ECN 601 GCU ,BIAM 570 DeVry, PSY 402 GCU , SOC 480 GCU , HUM 112 STR , PHI 210 STR, ACC 667 GCU, ACC 622 GCU, ACC 623 GCU, ENTR 510 DeVry, DNP 840 GCU , BIO 550 GCU , HRM 420 DeVry , ACC 690 GCU , HCA 807 GCU , ACC 650 GCU , REET 420 DeVry , MIS 605 GCU , ECET 350 DeVry , ENTR 530 DeVry , PSY 102 GCU , MIS 600 GCU , TCH 539 GCU , SPD 300 GCU , HCA 812 GCU , TCH 520 GCU , MGT 410 GCU , MIS 610 GCU
Reviews
There are no reviews yet.