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

Variant 5

Data base «Supply of medicines to pharmacies»

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:

Pharmacies

Pharmacy N

Pharmacy name

Head of pharmacy

Address

Phone

Е-mail

Input Mask

Commodity Groups

Commodity group ID

Commodity group

Directory of products

Product ID

Product name

Commodity group ID

Price

Lookup column with a definition of row source

Validation Rule

Supply

ID

Provider name

Pharmacy N

Product ID

Date

Purchase price

Quantity

ex., KRC Pharmacy Group

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule, Input Mask

Validation Rule

Validation Rule

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: product name, commodity group, pharmacy name, provider name, date, purchase price, quantity, order value, profit.

  2. A select query with information about products which quantity is more that 100 units with information: product name, commodity group, pharmacy name, provider name, purchase price, quantity, order value, profit.

  3. An aggregate query that totals up the number of products units that was ordered by every pharmacy.

  4. A parameter query that represents information about certain pharmacy (product name, commodity group, pharmacy name, provider name, date, purchase price, quantity, order value, profit).

  5. An action query that will increase the product price by 7% (only for products form “KRC Pharmacy Group” provider).

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

  7. A crosstab query of total profit by Pharmacies and Products.

Create the forms:

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

2. Create “Products” form in design view on the basis of table «Directory of products». 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 Pharmacy # and Provider. The Group Footer and the Report Footer must contain the average and minimum value of profit.

2. Create report «Orders of the products more that 100» in design view. In the report group data by dates, in the middle by commodity group. The Group Footer and the Report Footer must contain the minimum and average purchase price.