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

Variant 13

Data base «Travel Company»

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:

Turists

Turist_ID

Name

Age

Sex

Passport number

Address

Validation Rule

Value: male/female

Tours

Tour_ID

Tour_Name

Country

Number of days

Transport

List of activities and excursions

Price for single

Validation Rule

Validation Rule

Orders

ID

Date_of_order

Turist_ID

Tour_ID

Date of departure

Insurance

Number of adults

Validation Rule, Input Mask

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule, Input Mask

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: Date_of_order, Tour_Name, Turist_Name, Country, Date of arrival, Number_of_adults, Cost.

Date of arrival= Date of departure+ Number of days

  1. A select query with information (Date_of_order, Tour_Name, Turist_Name, Country, Date of arrival, Number_of_adults, Cost) about order of the last month.

  2. An aggregate query that totals up the cost of orders by each country.

  3. A parameter query that represents information (Date_of_order, Tour_Name, Turist_Name, Date of arrival, Number_of_adults, Cost) by certain country.

  4. An action query that in the table “Tours” will increase tour’s Price_for_single of the certain country by 15%.

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

  6. A crosstab query of minimum Price for single by Tour_Name and Date.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Orders of tours» report by using wizard. Make a data grouping by Countries and Dates. The group Footer and the report Footer must include the average cost.

2. Create report «Orders of tours in the last month» in design view. In the report group data by Tourists, in the middle by Tours. The group Footer and the report Footer must contain the total and maximum Cost.

Variant 14

Data base «Publishing company»

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:

Customers

Customer_ID

Customer_Name

Type

Company_Name

Address

Phone

Value: private person, organization

Input Mask