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

Variant 8

Data base «A ZOO»

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:

List of pavilions

Pavilion ID

Pavilion name

Pavilion director name

Employees

Employee ID

Name

Pavilion ID

Post

Salary

Lookup column with a definition of row source

Validation Rule

Statement of working days

ID

Month

Year

Employee ID

Number of working days

Validation Rule, Input Mask

Validation Rule, Input Mask

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: Pavilion name, Name of employee, Post, Salary, Month, Year, Income.

Income=Salary*Number_of_working_days/Number_of_working_days_in_month

  1. A select query with information (Pavilion name, Name of employee, Post, Salary, Month, Year, Income) about employees and their income in the current month.

  2. An aggregate query that totals up the number of days worked by each employee.

  3. A parameter query that represents information about employees (Pavilion name, Name of employee, Post, Salary, Month, Year, Income) by certain Pavilion.

  4. An action query that will increase employees Salary of one pavilion by 20%.

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

  6. A crosstab query of total average income of employees by pavilion and post.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Income of employees» report by using wizard. Make a data grouping by pavilion names. The group Footer and the report Footer must include the average income of employees.

2. Create report «Statement of working days» in design view. In the report group data by pavilion, in the middle by posts. The group Footer and the report Footer must contain the minimum and average income of employees.

Variant 9

Data base «Photo Center»

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:

Services

ServiceID

ServiceName

Price

Validation Rule

Customers

CustomerID

Name

Address

Cell_Phone

Input Mask

Branches

BranchID

Branch_Address

Phone

Head_of_branch

Input Mask

Provision of services

ID

ServiceID

CustomerID

BranchID

Date

Quantity

Urgency order

Lookup column with a definition of row source

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule, Input Mask

Validation Rule

Value: yes/no

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: Customer_name, ServiceName, Branch_Address, Phone, Date, Cost (=Price*Quantity).

  2. A select query with information (ServiceName, Customer_name, Branch_Address, Cost, Date) about services that was provided in the last month.

  3. An aggregate query that totals up the number of customers by each services.

  4. A parameter query that represents information (Customer_name, Address, Cell_Phone, Date, Cost) by certain servise.

  5. An action query that in the table “Services” will reduce Price of one service by 7%.

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

  7. A crosstab query of total minimum order cost by services and clients.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Provision of services» report by using wizard. Make a data grouping by ServiceNames. The group Footer and the report Footer must include the minimum and maximum order cost.

2. Create report «Provision of services in the last month» in design view. In the report group data by ServiceNames, in the middle by Dates. The group Footer and the report Footer must contain the minimum and average cost of order.