• Non ci sono risultati.

Data Warehousing Politecnico di Torino

N/A
N/A
Protected

Academic year: 2021

Condividi "Data Warehousing Politecnico di Torino"

Copied!
2
0
0

Testo completo

(1)

Data Warehousing

Politecnico di Torino Tickets

Problem specifications

An italian company operating in the ticketing sector for musical events wants to analyze the revenues and the number of tickets purchased based on the purchase date, location and date of the event.

The tickets of an event are characterized by the name of the tour of a specific singer/band (e.g

“Evolve World Tour” of the band “Imagine Dragons”), date and location where the event took place (e.g. 06/09/2018, “Milano Area Expo”).

A tour is characterized by one or more musical genres. The list of the possible genres is known and of limited size (“rock”, “pop rock”, “elettropop”, “pop”, “metal”,..., “jazz”). For example, the tour

“Evolve World Tour” is associated to “pop rock” and “elettropop” genres.

The company records the purchase date of the ticket and the information related to its purchase, such as the payment method (credit card, prepaid card, etc.). A ticket can be purchased in three ways: online, in authorised ticket offices or directly at the entrance of the event location.

▪ The company is interested in performing the analysis based on:

▪ tour name and musical genres,

▪ singer/band and nationality,

▪ event location, city, province, region (e.g., “Milano Area Expo”, Milan),

▪ date (e.g. 06/09/2018), month and year of the event, working days or holidays,

▪ date (e.g. 12/06/2018), month, month of the year, two-month period, three-month period, four- month period, semester and year of the purchase,

▪ purchase mode (online, authorised ticket offices, event location),

▪ payment method (credit card, prepaid card, etc.)

(2)

Design

Design the data warehouse to address the specifications and to efficiently answer to all the provided frequent queries. Draw the conceptual schema of the data warehouse and the logical schema (fact and dimension tables).

Query

Write the following frequent queries using the extended SQL language.

a) Separately for each purchase mode and for each purchase month, analyze: the average daily revenue, the cumulative revenue from the beginning of the year, the percentage of tickets related to the considered purchase mode over the total number of tickets of the month

b) Considering the events that took place in 2017, separately for each singer/band nationality and for each city, analyze: the average revenue for a ticket, the percentage of revenue over the total revenue for the corresponding region

Riferimenti

Documenti correlati

where prefix is defined as the CP dimension ( #define prefix 64 ), OFDMA_symbol_os is the symbol offset of the considered burst (i.e. the OFDMA symbol at which the burst starts: in

Solution proposed by Roberto Tauraso, Dipartimento di Matematica, Universit`a di Roma “Tor Vergata”, via della Ricerca Scientifica, 00133 Roma,

Separately for production month and factory, analyze: the cumulative monthly number of produced liters from the beginning of the year, the monthly percentage of liters produced

Considering the events that took place in 2017, separately for each singer/band nationality and for each city, analyze: the average revenue for a ticket, the percentage of revenue

trimester, analyze: the average delivery time, the average number of deliveries per time slot (the average number of deliveries made in an hour), assign a rank to the trimesters

Separately for mean of transport and trimester, analyze: the average delivery time, the average number of deliveries per time slot (the average number of deliveries made in an

The third technique should drastically minimize the storage requirements in practice but has a low guaranteed storage utilization and introduces some complications

[r]