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

Information about printing-house

PH_ID

PH_Name

PH_Address

PH_Phone

Input Mask

Orders

Order_ID

Customer_ID

Kind_of_

printed_

material

Quantity

Price

PH_ID

Date

Mark of the execution

Lookup column with a definition of row source

Validation Rule

Validation Rule

Lookup column with a definition of row source

Validation Rule, Input Mask

Value: yes/no

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: Date, Customer_ID, Kind_of_printed_material, PH_Name, Cost, Mark of the execution.

  2. A select query with information (Date, Customer_ID, Kind_of_printed_material, PH_Name, Cost, Mark of the execution) about orders in the current month.

  3. An aggregate query that totals up the cost of orders by each Kind_of_printed_material.

  4. A parameter query that represents information (Date, Customer_ID, PH_Name, Cost, Mark of the execution) by certain Kind_of_printed_material.

  5. An action query that in the table “Orders” will delete all records with information about customers from Gorlovka.

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

  7. A crosstab query of total quantity for printed materials by Customers and Kind_of_printed_materials.

Create the forms:

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

2. Create “Catalog of printing-house” form in design view on the basis of table «Information about printing-house». With the help of it add 5 new records to the table.

3. A main form.

Create the reports:

1. Create «Orders» report by using wizard. Make a data grouping by Kind_of_printed_material and PH_Name. The group Footer and the report Footer must include the total cost.

2. Create report «Orders in the current month» in design view. In the report group data by Kind_of_printed_material, in the middle by Dates. The group Footer and the report Footer must contain the average and maximum Cost.

Variant 15

Data base «Hotel Complex»

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:

Restaurant halls

Hall_ID

Hall_Name

Characteristics

Number of tables

Entertainment

Value:bar, green hall, summer terrace, …

Value: dance floor, karaoke, billiards, hookah

Service staff

Staff_ID

Staff_Name

Address

Phone

Hire_Date

Salary

Input Mask

Validation Rule, Input Mask

Validation Rule

Menu

Food_ID

Food_Item

Description

Type

Price

Weight

Value:

Validation Rule

Validation Rule

Service

Service_ID

Hall_ID

Staff_ID

Number of table

Date

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule, Input Mask

Orders of food

ID

Service_ID

Food_ID

Quantity

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: Date, Staff_Name, Hall_Name, Food_Item, Number of table, Quantity, Cost.

  2. A select query with information (Date, Staff_Name, Hall_Name, Food_Item, Number of table, Quantity, Cost) about orders in the current month.

  3. An aggregate query that totals up the number of clients by dates.

  4. A parameter query that represents information about staff work (Date, Staff_Name, Food_Item, Number of table, Quantity, Cost) in the certain hall.

  5. An action query that in the table “Service staff” will increase value of Salary by 21%.

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

  7. A crosstab query of total cost by Staff_Name and Hall_Name.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Service» report by using wizard. Make a data grouping by Dates and Hall_Names. The group Footer and the report Footer must include the minimum of order cost.

2. Create report «Orders of the current month» in design view. In the report group data by Hall_Names, in the middle by Staff_Names. The group Footer and the report Footer must contain the average and maximum Cost.