100% found this document useful (1 vote)
47 views2 pages

CSC496: Data Warehousing and Data Mining - FALL 2020: Assignment - 2 (CLO-C2, CLO-C3)

The document describes an assignment to build a program that implements roll-up and drill-down operations on a data warehouse using a star schema. Students are to: 1) create SQL database tables matching the star schema using data files provided, 2) connect a programming language to the database, 3) implement queries to allow users to roll-up or drill-down totals sales along dimensions, and 4) build a user interface to select the interactions. Examples of SQL queries for drill-down are given. Displaying results as bar graphs earns bonus points.

Uploaded by

Ahmed Bashir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
47 views2 pages

CSC496: Data Warehousing and Data Mining - FALL 2020: Assignment - 2 (CLO-C2, CLO-C3)

The document describes an assignment to build a program that implements roll-up and drill-down operations on a data warehouse using a star schema. Students are to: 1) create SQL database tables matching the star schema using data files provided, 2) connect a programming language to the database, 3) implement queries to allow users to roll-up or drill-down totals sales along dimensions, and 4) build a user interface to select the interactions. Examples of SQL queries for drill-down are given. Displaying results as bar graphs earns bonus points.

Uploaded by

Ahmed Bashir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

CSC496: Data Warehousing and Data Mining – FALL 2020

Assignment – 2 [CLO-C2, CLO-C3]


Deadline: December 08, 2020 Max. Marks: 10
Note: This assignment can be done in a group of 2.

In this assignment, you are going to build a program, in any language of your choice, that implements
basic ROLAP interactions within a data warehouse using the following star schema:

Figure 1: Star schema

The data, that each of the dimension tables and the fact table contains, is provided in the following five
files:
 BranchDimension.txt
 ItemDimension.txt
 LocationDimension.txt
 TimeDimension.txt
 SalesFact.txt

In order to implement the desired functionality, your program is going to offer, you should follow the
following steps:

Step-1: Using SQL Server Management Studio, create a database 1

Step-2: Using SQL Server Management Studio, create the four-dimension tables and the fact table
within the database created in Step-1.2

Step-3: Import the provided data to the corresponding tables of your database.

Step-4: In any programming language of your choice (Java, C#, Python etc.), make a connection to the
database created in Step-1.3

Step-5: Implement a program that allows user to do the following:

 roll-up on total sales by year and by quarter


 roll-up on total sales by country, by state, and by city
 roll-up on total sales by item brand and by item type (digital or analog)
 drill down on total sales by month and by day

1
https://datatofish.com/database-sql-server/
2
https://datatofish.com/table-sql-server/
3
https://docs.microsoft.com/en-us/sql/connect/sql-connection-libraries?view=sql-server-ver15
 drill down on total sales by item name
 drill down on total sales by street address

Step-6: Use SQL statements to implement each roll-up, drill-down. For example, the following query will
drill down on total sales by street address:

select sum(F.dollars_sold) as totalsales, D.street


from SalesFactTable F, LocationDim D
where D.locationkey = F.locationkey
group by D.street

Step-7: Implement a simple user interface (CLI or GUI) to allow activation of each of the interactions
mentioned in Step-5

Step-8: Display the results in the form of table. Usage of bar graphs will give you 20% bonus points (2
marks).

You might also like