首页 > 其他分享 >FIT5137  MStay account Transformation Stage

FIT5137  MStay account Transformation Stage

时间:2024-09-19 18:12:57浏览次数:1  
标签:task Number Transformation table FIT5137 data your ID Stage

FIT5137 Assignment 2 -S2 2024  (Weight = 40%)

Due - Friday, 20 September 2024, 4:30 PM

General Information and Submission

o This is an individual assignment.

Submission method: Submission is online through Moodle.

Penalty for late submission: 5% deduction for each day.

Assignment FAQ: There is an Assignment Frequently Asked Questions page set up for the Assignment 2 on EdStem Forum.

Problem Description

M-Stay is a residential service that offers homestay and rental services to Monash students and staff around Melbourne. The company has an existing operational database that maintains and stores all of the business transactions information (e.g. properties, hosts, listings, booking, etc.) required for the management's daily operation. As the business grows, M-Stay has decided to build a Data Warehouse to improve their analysis and work efficiency. However, since the staff at M-Stay have limited Business Intelligence and Data Warehouse knowledge, they have decided to hire you to design, develop and quickly generate BI reports from a Data Warehouse.

The operational database tables can be found at the MStay account. You can, for example, execute the following query:

select * from MStay.<table_name>;

The data definition of each table in MStay is as follows:

Table Name

Attributes,Data Types and Key Constraints

Notes

REVIEW

Review_ID

Number

(PK)

The table stores review information of the related booking order.

Review_Date

Date

Review_Comment

Varchar2

Booking_ID

Number

(FK)

BOOKING

Booking_ID

Number

(PK)

The table stores booking information.

Booking_Date

Date

Booking_Stay_Start_Date

Date

Booking_Duration

Number

Booking_Cost

Number

Booking_Num_Guests

Number

Listing_ID

Number

(FK)

Guest_ID

Number

(FK)

GUEST

Guest_ID

Number

(PK)

The table stores all guest information.

Guest_Name

Varchar2

LISTING

Listing_ID

Number

(PK)

The table stores all listing information. Each listing has one property and one host information.

Listing_Date

Date

Listing_Title

Varchar2

Listing_Price

Number

Listing_Min_Nights

Number

Listing_Max_Nights

Number

Prop_ID

Number

(FK)

Type_ID

Number

(FK)

Host_ID

Number

(FK)

HOST

Host_ID

Number

(PK)

The table stores all host information.

Host_Name

Varchar2

Host_Since

Date

Host_Location

Varchar2

Host_About

Varchar2

Host_Listing_Count

Number

HOST_VERIFICATION

Host_ID

Number

(PF)

The table stores the verification information between host and channel.

Channel_ID

Number

(PF)

CHANNEL

Channel_ID

Number

(PK)

The table stores the channel of verification for the hosts.

Channel_Name

Varchar2

LISTING_TYPE

Type_ID

Number

(PK)

The table stores all listing types.

Type_Description

Varchar2

A. Transformation Stage

The first stage of this assignment is divided into TWO main tasks:

1. Design a data warehouse for the above M-Stay database.

You are required to create a data warehouse for the M-Stay database.

The management is especially interested in the following indicators :

● Number of reviews

● Number of listings

● Average booking cost

The following is a list of dimension attributes that you should include in your data warehouse:

● Listing type

● Listing time [Month, Year]

● Listing season

o (Spring:9 to 11, Summer: 12 to 2, Autumn: 3 to 5 and Winter: 6 to 8)

● Listing maximum stay duration [short-term: less than 14 nights, medium-term: 14 to 30 nights, long-term: more than 30 nights]

● Listing price range [low: less than $100, medium: $100 to $200, high: more than $200]

● Channels

● Booking duration [short-term: less than 30 nights, medium-term: 30 to 90 nights, long-term: more than 90 nights]

● Review time [Month, Year]

● Booking cost range [low: less than $5000, medium: $5000 to $10000, high: more than $10000]

For the attribute, ensure that it meets the requirements of the range or group specified in your submission, if required in the specification.

Preparation stage.

Before you start designing the data warehouse, 代 写FIT5137   MStay account Transformation Stage you have to ensure that you have explored the operational database and have done sufficient data cleaning. Once you have done the data cleaning process, you are required to explain what strategies you have taken to explore and clean the data.

The outputs of this task for Report are:

a) If you have done the data cleaning process, explain the strategies you used in this process (you need to show the SQL to explore the operational database and SQL of the data cleaning, as well as the screenshot of data before and after data cleaning).

Designing the data warehouse by drawing star/snowflake schema.

Design task A:

The star schema for this data warehouse may contains multi-facts. You need to identify the fact measures, dimensions, and attributes of the star/snowflake schema. The following queries might help you to determine the fact measures and dimensions:

● How many long-term stay duration listings are listed on Facebook?

● How many listings are listed in June 2015?

● How many listings are there in summer for an “Entire home/apt” in a medium price range?

● How much is the average booking cost in March 2013?

● How many bookings were there for “Private rooms” with a short-term stay duration in 2015?

● How many high-cost bookings were made in April 2014?

● How many reviews were given in February 2016?

Note: the star schema you created in Design Task A as the highest level of aggregation

Design task B:

In this assignment, consider the star schema you created in Design Task A as the highest level of aggregation. The M-Stay company manager wants to implement a drill-down function to explore more detailed information. Your task is to suggest several ways to increase the granularity of your fact tables from Design Task A. In other words, the manager wants to decrease the aggregation level of the fact tables you created in Design Task A.

The outputs of task A & B for Report are:

b) A  star/snowflake schema diagrams for design task A. (You can use Lucidchart to draw the star schema.)

c) List suggestion of  increase the granularity of your fact tables for design task B

2. Implement design task A star/snowflake schema using SQL.

You are required to implement the star/snowflake schema that you have drawn in design task A. This implies that you need to create the fact and dimension tables in SQL. The output is a series of SQL statements to perform. this task. You will also need to show that this task has been carried out successfully.

Note:

● If your account is full, you will need to drop all of the tables that you have previously created during the tutorials.

● If you have dropped all tables in your account and you still encounter the ORA-01536: space quota exceeded for tablesace ‘TABLE_NAME’, please check your SQL code whether you have properly joined all tables. This issue was mainly caused when you did not do the table join properly as the number of records multiplied during the process.

The outputs of this task for Report are:

a) Screenshots of the table structure you created for Design Task A, including the dimension tables and fact tables.

A sample of screenshots of the table structure

 

B. Data Analytic Stage

 

Conduct a data analysis using the star schema you created in Design Task A by writing SQL queries to explore the data further. Present your findings in a clear and concise manner, demonstrating your understanding of the dataset and highlighting any noteworthy observations or patterns.

The outputs of this task for Report are:

1. Findings report: A detailed explanation of your findings, including any significant observations or patterns identified during the analysis.

Submission Checklist

 

 

Step 1: Report (25% of the total score)

 

A combined pdf file save as: YourstudentID_A2_report.pdf, containing all of the above tasks:

A. Cover page

B. If you have done the data cleaning process, explain the strategies you used in this process (you need to show the SQL to explore the operational database and SQL of the data cleaning, as well as the screenshot of data before and after data cleaning). Note that you are only required to find around 5 (five) data errors for this stage.

C. A  star/snowflake schema diagrams for design task A

D. List suggestion of  increase the granularity of your fact tables for design task B

E. Screenshots of the table structure you created for Design Task A only, including the dimension table and fact tables.

a. SQL file for creating the star/snowflake schema is NOT required in submission

F. Findings report: A detailed explanation of your findings, including any significant observations or patterns identified during the analysis.

 

Step 2: Poster (35% of the total score)

 

One page standard A4 poster in PDF format to save as: YourstudentID_A2_poster.pdf

 

Extract key information from the report you created and present it in a one-page poster. The poster must be in standard A4 size and in PDF format, which can be either landscape or portrait. The content should be clear and easy to understand. Avoid using technical jargon or complex language. Review the poster before submission to ensure it effectively communicates the key messages of your report.

Note:

Ensure the poster content is consistent with the key structure and findings of your report, and choose an appropriate layout that effectively organizes the information in a clear and logical manner. Maintain a good balance of text and visuals to enhance readability, and ensure all visuals are relevant and support the content of the poster. Label all visuals clearly and provide captions where necessary. Avoid overcrowding the poster with too much text or too many visuals, and ensure the poster is free of any grammatical or typographical errors.

Key guidance of design a poster:

● What is the main theme/objective of the poster that you want to express?

● Who is your target audience for this poster?

● Do you really need all the details from your report on this poster?

Step 3: Video presentation (40% of the total score)

A five minute video presentation in mp4 format save as: YourstudentID_A2_video.mp4

Based on the report and poster you have created, present your design and findings in a five-minute video presentation. Ensure you thoroughly understand both the report and the poster to effectively extract and communicate the key points.

 

标签:task,Number,Transformation,table,FIT5137,data,your,ID,Stage
From: https://www.cnblogs.com/WX-codinghelp/p/18421101

相关文章

  • react react18+vite+typeScript+eslint+prettier+husky+lint-staged+commitlint 快速
    技术栈react18react-router6antd5zustand4vite45axiosfakerjs模拟数据dayjslodashtypescriptechartscommitlint、prettier、eslinthusky、lint-staged自定义commitlint、cz-cli自定义eslint、prettier代码规范技术栈代码格式规范和语法检测vscode:统一前端编辑器。editor......
  • The 1st Universal Cup. Stage 19: America
    Preface中秋加训,发现Ucup里好多比赛要么之前做过,要么就是太毒瘤(有场比赛直接把模\(998244353\)写在题目名里了),因此就直接跳到这场北美区决赛了这场前期因为卡题意以及卡签到打的还是挺难受的,不过好在恶心归恶心题目还是都能出,最后也是堪堪写了9题由于这场没找到题解(其实......
  • The 1st Universal Cup. Stage 12: Ōokayama
    Preface久违地训练,因为昨天ICPC网络赛打的太唐不得不上点强度了回到这场本身,由于中途发现了两个题被搬到去年暑假前集训队内赛了,导致经典提前没事干2h15min过了六个题后(有两个是原)就开始对着L,M发呆,虽然最后4h45min的时候把M开出来了,但还是说明做难题的水平不够(评价是......
  • Git缓冲区理解:`index`,`add`和`reset`,`staged`和`unstaged`
    在git里面,有一个叫index的区域,你把东西加到那里叫add,把东西再从哪里撤回来叫reset;已经在里面的我们形容它是staged,还没有加进去的我们形容它是unstaged。其实index区就是一个纯粹的缓冲区,也叫stagingarea,是正式提交之前给我们的一个缓冲,还有犹豫的余地。因为一旦正式commit提交......
  • FIT5137 M-Stay Residential service
    FIT5137Assignment2-S22024 (Weight=40%)Due-Friday,20September2024,4:30PMGeneralInformationandSubmissiono Thisisanindividualassignment.o Submissionmethod:SubmissionisonlinethroughMoodle.o Penaltyforlatesubmission:5%deduc......
  • The 3rd Universal Cup. Stage 7: Warsaw 补题
    A太牛了。复读jiangly题解。先把代价除以二。设\(f_{i,j}\)表示以\(j\)的代价覆盖前\(i\)个点最多还能覆盖多少距离。发现只有\(f_{i,x},f_{i,x+1},f_{i,x+2}\)的值是有意义的。其中\(x\)为覆盖的最小代价。因为\(f_{i,x+3}\)一定不优。不如你到下个点再买一张......
  • PPM Image Transformations
    PPMImageTransformationsLearningObjectivesUponcompletionofthisassignment,youshouldbeable:Todevelop,compile,runandtestCprogramsinaLinuxenvironmentTonavigateLinuxcommandlinesreliablyThemechanismsyouwillpracticeusingincl......
  • The 3rd Universal Cup. Stage 9: Xi'an
    A.AnEasyGeometryProblem差分之后条件相当于类似\(a_{i-1}+a_i=k+b\)且\(a_{i-r+1}+a_{i+r}=k\)的条件,线段树维护\(a_i\)和\(k-a_{n-i}\)的哈希值,查询直接二分即可。时间复杂度\(O(n+q\log^2n)\)。B.CountingMultisets考虑\(p(S)\)......
  • The 3rd Universal Cup. Stage 8: Cangqian
    C.ChallengeNPC考虑构造一个二分图,左边是\(1,3,5,7\)右侧是\(2,4,6,8\)。最优解肯定是一边全1,一边全2。如果\(1,2\)之间不连边,这\(2\)就会被染色为1,因此只要让\(2,3\)连边,\(3\)会被染色为\(2\),然后\(1,4\)连边,\(4\)也会被染色为\(5\),这时只要让\(2,5\)和\(4,5\)连边,\(5\)就......
  • 线段树 transformation——hdu 4578
    问题描述:给定一个数列,数列中所有元素都初始化为0,对其执行多种区间操作操作1:add修改:对区间[L,R]内的所有数加c操作2:multi修改:对区间[L,R]内所有数乘以c操作3:change操作:把区间[L,R]内所有数改为c操作4:sum操作:对区间中的每个数的p次方求和。1<=p<=3输入:有不超过10个测试用例。......