• Non ci sono risultati.

Data warehouse design exercise Design a data warehouse to manage a hotel chain and to address the described issues.

N/A
N/A
Protected

Academic year: 2021

Condividi "Data warehouse design exercise Design a data warehouse to manage a hotel chain and to address the described issues."

Copied!
2
0
0

Testo completo

(1)

Data warehouse design exercise

Design a data warehouse to manage a hotel chain and to address the described issues.

Problem specifications

A big hotel chain has over 500 hotels of different categories all over the world. Every day in the data base of each hotel, information on free, reserved, and unavailable rooms and corresponding customers is stored. Rooms may be unavailable due to maintenance.

The hotel chain managers would like to build a data warehouse to analyze room states and income. The hotel chain managers would like to know for each hotel every day:

- the percentage of reserved rooms

- the percentage of free rooms

- the percentage of unavailable rooms

The income and the percentage of rooms must be known according to:

- geographical location of the hotel (state, region, and province)

- hotel category (5 stars, 4 stars, …)

- room features (number of beds, TV, whirlpool bath, …) - date, day of the week, month, year

The hotel chain managers would like to analyze the daily, holiday, monthly and yearly income.

Some frequent queries the managers would like to execute are the following.

a) In 2005, for each state and month, analyze the portion of rooms which are reserved, free, and unavailable.

b) In 2005, for each state, analyze the portion of rooms which are reserved. Associate a rank to each state according to the portion of reserved rooms for that state in 2005 with respect to all the rooms for that state. The state with the highest ratio of

reserved rooms in 2005 must rank first.

c) In 2005, for each state and month, analyze the income of 4-star hotels and the cumulative income of 4-star hotels.

d) For each state and year, analyze the total income of public holidays.

e) In 2005, for each hotel, analyze the total income of the rooms with satellite TV and whirlpool bath.

(2)

Design

1) Design the data warehouse according to the specifications; in particular, the designed data warehouse must promptly answer to all the frequent queries.

The following information is also known:

- the data warehouse has the information of 2005 and 2006

- number of states: 40

- number of cities: 400

- number of hotels: 500

- number of different room features: 8

2) Considering the designed data warehouse and its cardinalities, decide whether and which materialized views and/or indexes are convenient to improve response time of the frequent queries (consider all the frequent queries). Explain reasons for your choices.

Riferimenti

Documenti correlati

Franco Bedeschi, and FNAL- Technical Division/Test & Instrumentation Dept, in the person of Ruben Carcagno, for their support, and also would like to thank all the

This information must be available for each product type, product category, storehouse, and storehouse location (city, province, and region). The following are some of the

Give a rank according to the total number of free properties (rank 1 st the highest number). Sort the data according to the rank. c) In summer 2005, including only the attics

a) Considering only Italian routes, for each category of goods and for each year, select the average daily income for each month and the total monthly income since

ratio, considering only configurations having both RAM and CPU from the same supplier. d) Considering only 2002, for each configuration whose RAM has been bought

GROUP BY 4-M, year, component_type, supplier_area;.. h) Considering only suppliers from which, in 2003, more than 100 000 components have been bought in total, select for each

A brief summary of the members’ opinions reports an almost unanimous (98.6%) consensus on the fact that articles published in on-line scientific journals and residential

In your opinion, a section "The expert answers", where from time to time specialists in a specific field can answer the questions asked by the Members, can arouse the