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

Variant 11

Data base «Transport 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:

List of transport services

TS_ID

Service_Name

Transport cost of 1 km

Validation Rule

Vehicles

Vehicle_ID

Vehicle_Name

License_Plate

Lifting_Capacity

Validation Rule

Drivers

Driver_ID

Driver_Name

Vehicle_ID

Salary

Lookup column with a definition of row source

Validation Rule

Provision of transportation services

ID

Date

Driver_ID

TS_ID

Fuel_Consumption

Mileage

Validation Rule, Input Mask

Lookup column with a definition of row source

Lookup column with a definition of row source

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: Date, Driver_Name, Vehicle_Name, License_Plate, Service_Name, Mileage, Cost.

  2. A select query with information (Date, Driver_Name, Vehicle_Name, License_Plate, Service_Name, Mileage, Cost) about provided services in the current month.

  3. An aggregate query that totals up the Mileage by each Vehicle.

  4. A parameter query that represents information (Date, Driver_Name, Vehicle_Name, License_Plate, Service_Name, Mileage, Cost) by certain Driver.

  5. An action query that in the table “List of transport services” will increase Transport cost of one service by 10 hrn.

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

  7. A crosstab query of total cost by Services and Drivers.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Cost of transportation» report by using wizard. Make a data grouping by Vehicles and Dates. The group Footer and the report Footer must include the total cost of the transportation.

2. Create report «Transportation in the current month» in design view. In the report group data by Driver_Names, in the middle by Vehicles. The group Footer and the report Footer must contain the minimum and total mileage.

Variant 12

Data base «Trading 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:

Product groups

Group_ID

Product_Group_Name

Manager_Name

Products

Product_ID

Product_Name

Group_ID

Retail_Price

Lookup column with a definition of row source

Validation Rule

Distributors

Distributor_ID

Distributor_Name

Address

Category

Products purchasing

ID

Date

Shipment

Product_ID

Distributor_ID

Purchase_Price

Quantity_of_

distribution

Validation Rule, Input Mask

Lookup column with a definition of row source

Lookup column with a definition of row source

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_Group_Name, Product_Name, Cost_of_realization, Cost of purchasing, Profit, Manager_Name, Date.

  2. A select query with information (Product_Group_Name, Product_Name, Cost_of_realization, Cost of purchasing, Profit, Manager_Name, Date) about products that was purchased during the last week.

  3. An aggregate query that totals up the cost of realization by each manager.

  4. A parameter query that represents information (Product_Group_Name, Product_Name, Profit, Manager_Name, Date) by certain product category.

  5. An action query that in the table “Products” will increase products Retail_Price of the one product group by 10%.

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

  7. A crosstab query of average Profit by Product_Name and Date.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Purchasing of products» report by using wizard. Make a data grouping by Product_Groups and Dates. The group Footer and the report Footer must include the total profit.

2. Create report «Products purchasing over the last week» in design view. In the report group data by Product_Groups, in the middle by Dates. The group Footer and the report Footer must contain the minimum and maximum Purchase_Price.