Assignment Su2023
Assignment Su2023
1. Operational database
WideWorldImporters is a wholesale company. The operational database of this company is provided in
the WideWorldImporters-Full.bak. Restore the corresponding file WideWorldImporters-Full.bak (SQL
Server 2016 and further) for having the operational database. For restoring the database, choose
Databases/Restore Database in SSMS and choose Device then browse to the folder including your
WideWorldImporters-Full.bak file.
2. Context
The WideWorldImporters company sells products in different city, countries. The diagram the operational
database is too large to print on a page A4, you could create a database diagram in your SSMS to view the
operational base. The operational base is divided into several schemas (Sales, Warehouse, Purchasing,
Application), each corresponding to a specific operational need. Note that:
- The Orders table contains general information about customer purchases, normally issued by the
customers to confirm their purchase and are to be fulfilled by the company.
- The Invoices table contains the information of the bills issued by the company after fulfilling a
purchase order.
- The InvoiceLines and OrderLines contain the details of products sold in different invoices/orders.
Business Requirement
The marketing department wants to increase the volume of sales of the company. For this, it is necessary
to better describe and understand the way in which these sales work.
Your analysis must relate to each stock item. For each stock item, the manager needs to analyze by name,
color, unit package, outer package, brand, size, leadTimeDays, quantity per outer, is chiller stock, barcode,
tax rate, unit price, typicalWeightPerUnit, validFrom, validTo. Note that the decision makers do not want
to analyze the sales for each precise price, but they want to analyze the sales according to each price
range (for example 0-5, 5-10, 10-20, …).
We are interested also in the cities where the sales are delivered (city, state, country, continent, territory,
region, sub region). They also want to compare the sales by the suppliers of the stock items (supplier
name, category).
Your analysis should also look at the dates the customer has ordered items, on the dates that these orders
should have been delivered, and the dates on which the order was delivered to them. The decision maker
may want to know if the customers often make purchases on which day of the week, on holidays or not,
or in which week of the year.
Customers are of particular interest to you. In this project, you will also create customer profiles to help
members of the marketing department in the implementation of targeted marketing. Decision makers of
the marketing department do not require to keep all the information of each individual customer, but
they want to analyze the items preferred by each group of customers. Different customers are considered
belonging in a same group if they have the same category, buying group and from a same city.
The decision maker also wants to group the sales by sale person to analyze the effectiveness of their
employees. Each employee should be considered separately.
Finally, they want to know which payment method is preferred by their clients and which delivery method
is often used.
For analyzing the sales, the decision makers are interested in the quantity sold, the total amount excluding
tax, the tax amount, the total amount including tax, the profit. They also want to compare the total
quantity of the dry items and the total quantity of chiller items.
Your work:
Use SQL Server Integration Services to create a new Integration Services project named
WideWorld_RollNumer_ETL.sln where RollNumber is your roll number. In this project, you will
create a new Package named Create_DW.dtsx. In this package, you will create the multi
dimension database (data warehouse) and the corresponding tables. Specifically, in this
package, you have a “control flow” in which you can add different tasks to this control flow.
These tasks can be organized sequentially or parallel, as shown in the following figure. This
figure shows only an example, it is not corresponding to the control flow of your project. In fact,
you must create a “SQL query task” for creating the database or for creating each table. And for
each task, you could put your Transact-SQL code in the “SQL-query” field corresponding to the
task you want.
3. For the lab 6:
6. Use SQL Server Reporting Service to create a “reporting service” project by using your data
warehouse as data source and then create a report corresponding to the analysis that you did
in the previous question and extract the report in an excel file. You must also public an online
version of your report in your local server http://localhost/ReportServer.