I’ve done most part of the project and stuck. Need to check the database and do the rest of the SQL
MergerETLMemo
DATE:
7/5/2018
MEMORANDUM FOR:
Young & Jolly, LLC Merger Project Consultants
FROM:
Smart-Buy
SUBJECT:
Merger Project ETL Parameters
Now that the contracts are signed, we are providing more detailed guidance for the team that will help us with our Merger Project. This memo addresses the following topics:
· Background Information
· Specific Files Provided
· Deliverables
Background Information
Recently, Largemart, Incorporated and Bullseye, Incorporated, two large, regional retailers, went through a merger. The newly formed company operates under the name Smart-Buy, Incorporated. Smart-Buy, Inc. is a large retailer with $11.5B USD in annual sales and 80,000+ employees. Smart-Buy is in the process of merging its operations,
Currently, Smart-Buy has retail stores on the West Coast, as well as in Plain and Southern states, but intends to expand into other regions. The company is in the process of determining where its new headquarters will be, so Smart-Buy executives are splitting their time between Largemart’s and Bullseye’s headquarters in California and Oklahoma, respectively. The combined company has retails stores, transportation and distribution centers, as well as a few manufacturing plants.
There were many factors weighed by the company executives and board of directors prior to merging the two companies. One company had distribution centers and manufacturing plants that could prove to be advantageous to the combined company since there would be no need to ramp up new facilities or create facilities from green fields. And, the fact that Largemart already have retail stores in California, meant that the newly formed company would have a Human Resource and Legal Department already well versed in the strict workplace laws and regulations used in California. Additionally, with a significantly larger workforce and store locations, the executives saw that the new combined revenue and synergies between the two companies would be a powerful force to take into the marketplace.
Smart-Buy’s workforce has full-time, part-time, and seasonal workers. During the holiday sales period, their levels generally peak since this is the time of year that Smart-Buy generates their highest sales.
Smart-Buy is in the process of changing its store banners (e.g. Largemart store and Bullseye store signage and related company logos) and implementing SAP as their enterprise resource planning (ERP) system. It has taken a considerable longer time to implement the new system as Smart-Buy works through taking on new best practices as it relates to their business processes and upgrading their technical infrastructure to support the larger company. In the meantime, financials, including payroll, are still being done in separate legacy systems. While this is cumbersome, Smart-Buy’s Chief Information Officer (CIO), thinks that it was more strategic to get the new ERP system implemented as quickly as possible, than to have his limited information technology (IT) teams concurrently working on an interim solution that will be thrown away once the new ERP system was fully functional. As a result, each quarter and annually, there is a manual process of combining financials and reporting. This manual process has caused earning restatements and delays in providing financial information to executives.
We chose Young & Jolly (Y&J), LLC, a Big 6 Accounting Firm to help expedite payroll reporting. It is critical that Y&J completes this task as expeditiously as possible, especially taking into account all of the recent employment regulation changes. As Y&J Consultants, your team has been asked to tackle this assignment. The Managing Partner of the Oklahoma City practice specifically asked for your team to work on this effort because of the outstanding results she saw on your last assignment and because she knows that you do not take shortcuts or wait until the last minute to get your work done. The Managing Partner also gave your team specific instructions to get started on this assignment now because of the large amount of data.
“This is more data than we typically work with,” she said. “This is Big Data!”
Specific Files Provided
Smart-Buy has provided you with employee files. The employee files consist of demographic information. Each company provided files from separate legacy systems. In addition, Smart-Buy has provided you with quarterly payroll files from fiscal year 2016 for each of the two companies. Specifically, you should have the following files for each company:
· Addresses
This file contains address information sorted by employee id. Both large-mart and Bulls-Eye will provide these files to Young&Jolly Inc. Any queries that need to understand the location of the employee by city, state or zipcode, should use this table as all employees have an address record. These files will need to be merged together. The address_id will be the primary key for the merged file.
· Calendar
This file contains information about the calendar utilized to calculate payroll. Pay checks are cut for hourly employees on the 1st and the 15th of each month. This means that the number of hours available to work in any given pay period must be calculated based on the number of week days in the pay period. The calendar file will provide the number of hours available for an employee to work in a pay period. Both companies will provide this file. If the files are exact matches, only one of these files are required for use in your new database. Usually only one of these files is necessary. This file will be useful for limiting the results by period, month or quarter.
· Departments
The departments at both companies will have the same names; however, not both of the companies have all departments. For reporting and data integrity purposes, please merge the department files provided. The Department_IDs from each company uses a different naming convention, and therefore the department_ID is a unique identifier of each row of data.
· Employee Information
Employee Files are provided by each company and we would like one Employee file as part of the merger. Not all employees are assigned to a store as those in support jobs, like human resources and accounting do not work for just one store. This means that there are nulls in the data for Store_ID for many employees. Pay attention to how access brings this field over as it is a foreign key and must be a number. For querying anything that has to do with an employee city or state, the address table should be used. The store information is useful for understanding how many employees are assigned to a store, etc. Another field to watch is the SSN, please ensure the SSN is brought over in a format that works for both companies. The employee_id uniquely identifies each row in this table.
· Payroll Register
Payroll information has been downloaded quarterly for each company. This means that Large-Mart has 5 Payroll files and Bulls-Eye has 5 Payroll files that need to be combined into one large payroll file (this may exceed 1,000,000) records. Each employee has multiple payroll records in this file. It is sorted by employee_id, which repeats and cannot be used as a primary key.
· Stores
This file includes information about the stores, including the address of the store and the number of customers in the store’s immediate area (estimated population). The store address does not reflect where employees are located, the address table should be used for this. Store_ID will uniquely identify each row in the table.
· Revenue-Stores
This file includes information about the Revenue brought in by each store. The Revenue is reported using the same calendar that is used to calculate payroll. Each store’s revenue is reported by period, meaning that period cannot be used as a primary key and store_id cannot be used as a primary key.
Smart-Buy provided this picture of how the tables are related:
Deliverables
This memo specifies the requirements to extract, translate and load the data into a database. We refer to that as the ETL Deliverable.
ETL Deliverable: For the purposes of insuring data integrity, we want to understand how you create the database against which you will eventually run your analysis. All the analysis should be run from the same database. So, we ask that you create a database and write a process memo to explain what you have done so that we can ensure the integrity of our data through the Extraction, Translation, and Load Process. This is common requirement for data analysis by consultants or auditors. We have extracted the data, so no write up of the extraction process is necessary. Your memo (word document) should have the following sections:
· Process
In this section we want you to write the steps of creating your database in enough detail that should we need to recreate your work in an audit we are capable of such. A picture of your final tables is required.
· Translation
In this section you will outline any formatting or changes to the data that occurred.
· Load
In this section you will outline the final disposition of the database. This includes screen shots of sample data for each table, and total record counts against your tables. Start by describing the final structure of your database. Tell your audience what tables you now have in the database. A screen shot of the access screen(s) to support this is required.
Technical Specifications:
Given the size of the files, we are keeping them in a dropbox. You will be provided a link to the appropriate files through canvas. There is also an ETL “Quiz” where you will verify that you have loaded your tables correctly by verifying your record counts and answering a few simple database questions. You have 2 attempts at this “Quiz”. Both the word document and the “Quiz” are due at the same time as specified in Canvas. The “Quiz” is worth 10 points and the ETL write-up is worth 10 points for a total of 20 points for the ETL activities.
MergerAnalysisMemo
DATE:
7/5/2018
MEMORANDUM FOR:
Young & Jolly, LLC Merger Project Consultants
FROM:
Smart-Buy
SUBJECT:
Merger Project ETL Parameters
Now that the contracts are signed, we are providing more detailed guidance for the team that will help us with our Merger Project. This memo addresses the following topics:
· Analysis
· Final Deliverable
Analysis
Given the new make-up of the organization Smart-Buy wants to understand some specifics of the new employee base. Below are a few questions that will aid in that endeavor.
1. Several employees believe that their paychecks were calculated incorrectly. Management has asked that you produce a report that shows all employees hired after 2/15/2018 living in Oklahoma in the accounting executive department that made more than $55,000 in the 3rd Quarter of 2018. Report the employee_id, last name, department name, total gross salary. This report should be in alphabetical order from A – Z.
2. What were the top 75 seasonal employees that were not seasonal that worked for Smart-Buy more than 180 hours in December of 2018? Report the city and state in which they worked, their hourly_rate, total number of hours worked, and marital status, in descending order based upon the number of hours worked.
3. Smart-Buy wants to understand if most of their seasonal workers worked more than 4 periods during the busy season (4th quarter). List (by employee id and last name) the number of periods worked and the total gross_pay for seasonal retail workers in the 4th quarter of 2017 and the 4th quarter of 2018. If the results of this query are more than 100 records, only report the first 10 in your write-up.
the number of periods -> use COUNT(Calender.period) GROUP BY
if group by doesn’t work with both SUM and COUNT
SELECT …, a.total_gross_pay
FROM (
SELECT … FROM … GROUP BY ) a, EmplInfo b
WHERE a.employee_id = b.employee_id
“If the results of this query are more than 100 records, only report the first 10” (Maybe Microsoft Access specific syntax -> Google)
4. If smart-buy wants to relocate headquarters, where should they do this? Please use at least 2 queries to answer this question. Take into consideration where the employees that work jobs that would be associated with headquarters (for example: accountants, IT workers, executives, and possibly others) currently live. Also consider the location of our most lucrative stores. Figure out how to provide a heatmap of the location of the most lucrative stores.
SELECT cities, state, jobs, count(employee)
From ,…..
Order by state, count(employee)
Select stores, sum(revenue)
From ….
Order by sum(revenue) desc
Deliverables
Analysis Deliverable: For the purposes of insuring data integrity, we want to understand how you create the database against which you will eventually run your analysis. All the analysis should be run from the same database.
· Turn in a final report in a word document. You will need to have at least 2 visualizations. One visualization is required for #4 and you can choose one other query to visualize. You may do your visualization in Excel or Tableau, but the picture must be included in the word document.
· This document must list the question and then the answer to the question.
We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.
Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.
Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.
Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.
Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.
Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.
We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.
Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.
You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.
Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.
Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.
You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.
You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.
Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.
We create perfect papers according to the guidelines.
We seamlessly edit out errors from your papers.
We thoroughly read your final draft to identify errors.
Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!
Dedication. Quality. Commitment. Punctuality
Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.
We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.
We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.
We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.
We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.