关键词 > SQL代写

Roo Scooters Business

发布时间:2022-09-07

Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

I.1 Roo Scooters Business

Roo Scooters Business (RSB) specializes in manufacturing and selling scooters of various models that can be grouped into different categories and subcategories. RSB is primarily in the business of selling scooters, but it also sells accessories (such as bottles, scooter racks, and brakes), clothing (such as caps, gloves, and jerseys), and components (such as chains and derailleurs) purchased from vendors. Thus, RSB is not only a manufacturer but also a reseller.

The RSB business model divides customers into two types; retail stores that sell scooters, and individual customers. RSB has a global customer base as it serves customers throughout the United States, Canada, Australia, the United Kingdom, France, and Germany. Although RSB does not have any brick-and-mortar stores itself, it sells in bulk to retail stores that act as resellers for its products.  Additionally, it also sells products directly to individuals via its Internet platforms. Overall, RSB's customer base includes over 500 stores, over 15,000 personal customers. As an international company RSB keeps monetary information in USD currency, but also keeps track of the conversion rates in the original currency. In recent years, RSB has been very successful and a highly profitable business. For the expansion, company needs to identify profitable customers and products.

I.2 The Case Scenario

Margery is the newly hired senior manager and is tasked with the responsibility of building an analytical data platform before making the expansion decisions. Margery needs a better understanding of the sales, products, customers, and currency rates. In a recent business meeting, Margery has heard from vendors that business analytics will provide the business with the capability to make more informed decisions. The board has approved hiring a business analyst consultant to provide analytic insights regarding the profitability of various products. You have been hired as a consultant to propose a business analytics solution to the management team. Your Job is to identify the key customers, profitable products, and profitable sales regions.

The company RSB uses OLTP database, operational or transactional database, to source and sell scooters: the sales system. The sales system is used for keeping track of sales and customers. Any data required for analytics tasks are sourced from the existing operational systems, especially, the sales system.

Before you answer these analytical queries, you should first understand the sales system, an operational database. ER diagram of the sales system in Figure 1 is your starting point. The sales system is a package based on an SQL-Server database running on a windows-based computer. The assessment folder also includes a data dictionary that will help you understand the Sales system. As you already know, to answer analytical queries, we convert the transactional data to dimensionally modeled data. Your first task is to prepare a dimensional model. Your dimensional model should explain the data granularity, fact measures, and dimensions. Once you have created the fact table, you are supposed to implement the model using Microsoft SQL Integration services (i.e., SSIS project in visual studio and SQL server management studio). Once the dimension model is prepared, you can run the SQL queries to generate the insight.

Additional Information:

•    The ER model of the sales system is given as a separatefile                                       Sales_ER_Roo_Scooter.JPG”. The sales system consists of various tables such as Orders”, OrderDetails”, Product”, Customers”, CurrencyRates”,                   CustomerAddress”, and so on.

•    Sales ER Model (Definition of attributes are provided in the data dictionary in the Assignmentfolder on LMS).

•    The Sales Database is provided to you as a backupfile that you need to load to the database systems.

•    Some of the data related to sales systems are yet to be imported to the database systems and are available as CSVfiles. You need to integrate datafrom thesefiles if needed to complete your solution.

•    Orders and OrderDetails tables contain the everyday transactional information. If you need tojoin these two tables, keep in mind, that Tax and Freight are totalsfor the       transaction. You may need to generate a ratio (LineTotal/SubTotal) to calculate tax    andfreightper item.

    Item Cost = StandardCost*OrderQty

•    In general, the company calculates Profit = Sales (LineItem)  Item Cost  Tax (item level) - Delivery Cost (Freight item level)

I.3 Mid-Semester Exam preparation

The Mid-semester exam has two components of which the case solution is the major chunk. Before the exam, please prepare a dimension model (you will need a screenshot), perform data integration using Microsoft SSIS (You will be asked to submit screenshot of the processes), and practice running analytical queries on the integrated data. Example of analytical queries includes finding the most profitable products, most sold products by country, busiest store during summer in Queensland and implementing slowly changing dimensions. The theoretical concepts will be covered in lecture while the tutorials before the exam will teach you how to develop dimension model, and also integrate data to create data warehouse.

Before the exam:

•    Complete the dimension model (screen shot or similar submission)

•    Complete data integration using SSIS (SSIS screenshots)

•    Load the integrated data to Data Warehouse

•    Know your dimension model (Facts, dimensions and attributes ofyour tables)

•    Identify slowly changing dimensions.

•    Practice analytical queries. •

Practical tips: Before the exam, you should have all the screen shots saved and ready for uploads. To efficiently manage the exam time, make sure that you have the details of dimensional model written and ready to be pasted in the answer box. You should also have the Integrated Data warehouse implemented (and also be ready to run SQL queries on the integrated data using SQL server Studio).

Note: The exam will have maximum of 5 questions where you are required to write analytical queries and report results, and maximum of 10 multiple choice questions.

Analytical Queries for Practice (Sample Questions)

Q1.  Who are the key customers in Australia?

You should identify RSB ’s top 10 customers based on the profits generated with their location. The top    10 customers result should include customer ID, full name, city, and state and profits in Australian dollars based on average daily exchanges.

Q2.  Who are the key customers outside of Australia and US?

You should identify RSB ’s top 10 customers based on the profits generated (in USD) with their location. The top 10 customers result should include customer ID, full name, city, and state, profits in related        country’s currency based on average daily exchange rates, and currency name (French Franc, United       Kingdom Pound, etc).

Q3. Which products were the mostprofitable in 2014?

You should identify RSB ’s most profitable products, including their category and subcategory information, along with the profits generated from them in 2014 in US dollars.

Q.4 Which cities were the most profitable during December 2013?

You should identify RSB s most profitable sales regions by city. Moreover, you should provide               information about unit sales, dollar sales, and profit for each city (in related country’s currency based on average daily exchange rates), and currency name (French Franc, United Kingdom Pound, etc).

Q.5 Implement Slowly changing dimensionality (SCD) on product dimension

For this task you will need to implement SCD on Product dimension. The rule is you only keep the history of product names, the rest of the attributes needs to be updated to the latest values.

After building your product dimension and populating it, run below query followed by your SSIS package to add updates and additions to your product dimension.  Run a query against product dimension for          product numbers = 'BB-7421' and 'DS-01' and attach the results.

UPDATE Product

SET name = 'LL Lower Bracket', Color= 'Red'

WHERE ProductNumber = 'BB-7421';

INSERT INTO [dbo] .[Product]

([Name]

,[ProductNumber]

,[MakeFlag]

,[FinishedGoodsFlag]

,[Color]

,[StandardCost]

,[Size]

,[SizeUnitMeasureCode]

,[WeightUnitMeasureCode]

,[Weight]

,[ProductLine]

,[Style]

,[ProductSubcategoryID])

VALUES

('Dummy Scooter'

,'DS-01'

,0

,0

,'Yellow'

,0.5

,'40'

,'CM'

,'LB'

,27.35

,'M'

,'U'

,1 )