Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Ilenko_YU.I._Stvorennya_baz_danih_u_seredov._MS...doc
Скачиваний:
3
Добавлен:
01.05.2025
Размер:
3.6 Mб
Скачать

Variant 4

Data base «Hotel Management Information System»

According the offered structure of the relational database build the necessary objects of it: tables, queries, forms and reports. Form a general report from the printed database objects and description of its implementation.

Create the tables:

Clients

Tourist ID

Tourist name

Address

Phone

Sex

Input Mask

Value: Male/Female

Catalog of buildings

Building number

Building name

Class

Quantity of rooms

Cost per day

Value: 5-Star, 4-Star, 3-Star, 2-Star,1-Star

Validation Rule

Validation Rule

List of settling

ID

Arrival

(date)

Tourist ID

Building number

Room

Daily cleaning

Laundry

Entertainment

Number of days

Validation Rule, Input Mask

Lookup column with a definition of row source

Lookup column with a definition of row source

Value: Yes/No

Value: Yes/No

Value: Yes/No

Validation Rule

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: building name, class, tourist name, arrival, number of days, total cost, services.

  2. A select query with information about clients from Donetsk that live in 4 and 5-Stars buildings (building name, tourist name, arrival, number of days, total cost, services).

  3. An aggregate query that totals up the number of clients in the every building.

  4. A parameter query that represents information about certain building (building name, tourist name, arrival, number of days, total cost, services).

  5. An action query that will increase the cost per day in 5-Star building by 7% (Catalog of buildings table).

  6. On the basis of the first query create a new “Make Table” one.

  7. A crosstab query of total number of tourists by buildings and arrival.

Create the forms:

  1. Create «Settling» form by using wizard on the basis of table «List of settling». With the help of it add 5 records to the table.

  2. Create “Buildings” form in design view on the basis of table «Catalog of buildings». With the help of it add 5 new records to the table.

  3. A main form.

Create the reports:

1. Create «Information about tourists» report by using wizard. Make a data grouping by arrival and buildings. The Group Footer and the Report Footer must contain the average duration (number of days).

2. Create report «Clients from Donetsk » in design view. In the report group data by buildings, in the middle by Arrivals. The group Footer and the report Footer must contain the minimum and total cost.