CS538 ETL Assignment - Create a new SSIS

Question # 00861235 Posted By: wildcraft Updated on: 09/28/2024 12:16 AM Due on: 09/28/2024
Subject Computer Science Topic General Computer Science Tutorials:
Question
Dot Image

Title: Extraction, Transformation, Loading (ETL) With SQL Server Integration Services (SSIS) CS 538 Business Intelligence And Data Mining

CS 538 ETL Assignment

 

Instructions:

1. Create a new SSIS project.

2. Create a new database called ETL_Data in SQL Server.

3. Create an SSIS package for each of the following tasks:

· PersonBio - This package will export the data to the ETL_Data database from the source tables and columns listed below found in the AdventureWorks database:

Source Tables: Person.Person, Person.EmailAddress, Person.StateProvince, Person.PersonPhone, Person.BusinessEntityAddress, and Person.Address.

Source fields: FirstName, LastName, AddressLine1, AddressLine2, City, StateProvince.Name, EmailAddress, and PhoneNumber.

The new table will contain every employees’ information from the tables above regardless of they have a phone number or email address.

Name the new table PersonBio in your ETL_Data database.

Name the Source Assistant PersonBioSource, and the Destination Assistant PersonBioDestination

Name the package PersonBio.

· SplitByStateName - This package will split the data from the PersonBio table into different tables within ETL_Data database based on the first letter of the StateProvince name.

You will create 5 new destination tables (StatesWith A, B, C, Null, and Others).

You may have to place the condition for the states with NULL value first, before specifying other conditions.

This is a sample of the output table that will be generated by the ETL process.

· ProductSalesInfo - This package will calculate the sales amount and sales quarter for each product.

The data source for this package will be a query from the following tables: Production.Product, Production.ProductSubcategory, ProductCategory, Sales.SalesOrderHeader, Sales.SalesOrderDetail.

The query should show the following fields: Production.Product.Name, Production.ProductCategory.Name AS [CategoryName], Production.Product.ListPrice, Sales.SalesOrderHeader.OrderDate (only the orders after 2004), Sales.SalesOrderDetail.OrderQty.

Create two Derived Columns in the destination table. Name the first derived column SalesAmount. You can calculate the sales amount by multiplying ListPrice and OrderQty.

Name the second derived column SalesQtr. The data for this column should be extracted from the OrderDate field using a month function. You will need to build an “IF” statement around the month function that will check and assign the quarter value. The conditions for the IF statements can be, IF month of the date is > 9 then the value of the SalesQtr is 4th qtr, IF the month of the date is > 6 then then SalesQtr is 3rd Qtr, IF the month is > 3 then SalesQtr is 2nd Qtr, and for all the other months SalesQtr is 1st Qtr.

Name the output table ProductSalesInfo.

This is a sample of the output table that will be generated by the ETL process.

· SalesAggregate - This package will aggregate the data from the ProductSalesInfo table to show the total quantity and total sales amount for each product.

The data source for this package will be the ProductSalesInfo table.

Select these fields for the source query: Production.Product.Name, Production.ProductCategory.Name AS CategoryName, Sales.SalesOrderDetail.OrderQty, Sales.SalesOrderDetail.UnitPrice.

Create a derived column called SalesAmount by multiplying Price with Qty. After adding the derived column task, add an Aggregate task in the package. Aggregate the fields in such a way that for each product name total quantity and total sales amount are shown.

Name the output table SalesAggregate.

Using a Multicast task, export the data in a flat file and into a SQLServer table. Name the flat file SalesAggregate.txt and the SQLServer table SalesAggregate.

This is a sample of the output table that will be generated by the ETL process.

4. Save all of the packages in the same project.

5. Truncate the destination tables in each package before running the package.

6. Name the data flow tasks, data source tasks, destination source tasks, and any other task or transformation module meaningfully.

7. Zip the project folder and name the zipped folder with your last and first name.

8. Upload the zipped folder to Canvas.

 

Grading:

Your assignment will be graded on the following criteria:

· Correctness of the data in the destination tables.

· Use of meaningful names for data flow tasks, data source tasks, destination source tasks, and any other task or transformation module.

· Use of truncate SQL commands in every package to delete any destination table and prevent duplication before running any task in your package.

· Creation of the ETL_Data database in SQL Server.

 

image4.png

image1.png

image2.png

image3.png

Dot Image
Tutorials for this Question
  1. Tutorial # 00856741 Posted By: wildcraft Posted on: 09/28/2024 12:17 AM
    Puchased By: 2
    Tutorial Preview
    The solution of CS538 ETL Assignment - Create a new SSIS...
    Attachments
    CS538_ETL_Assignment_-_Create_a_new_SSIS.ZIP (18.96 KB)

Great! We have found the solution of this question!

Whatsapp Lisa