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

Variant 6

Data base «Theater repertoire»

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:

Genres

Genre ID

Genre

Performances

Show ID

Show name

Genre ID

Director

Conductor-producer

Leading actors

Lookup column with a definition of row source

Places

Place ID

Place name

Address

Rent price

Validation Rule

Repertoire

ID

Show ID

Place ID

Date of show

Time

Lookup column with a definition of row source

Lookup column with a definition of row source

Validation Rule, Input Mask

Validation Rule, Input Mask

Set up relations between tables and fill it with data.

Create the queries:

  1. A select query with the next information: Show name, Genre, Place, Director, Date of show, Time, Rent price.

  2. A select query with information about performances (Show name, Genre, Place, Director, Date of show, Time, Rent price) that will be shown in the next month.

  3. An aggregate query that totals up the general number of performances.

  4. A parameter query that represents information (Show name, Genre, Place, Director, Date of show, Time, Rent price) by defined place of show.

  5. An action query that will change in the Places table value in Place name field from “Donetsk state sports palace Druzhba” to “Donetsk state palace Yunost” only for shows that will take place in the next month.

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

  7. A crosstab query of total cost of renting by shows and place.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Repertoire» report by using wizard. Make a data grouping by genre and then by director. The group Footer and the report Footer must include the total cost of renting.

2. Create report «Repertoire of the next month» in design view. In the report group data by date, in the middle by genre. The group Footer and the report Footer must contain the minimum and average rent price.

Variant 7

Data base «An airport»

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:

Catalog of flying vehicles

Flying vehicles ID

Appointment

Model

Number of seats

Value: passenger transport, postal, agricultural, racing

Validation Rule

Air personnel

Commander aircraft ID

Name of aircraft commander

Rank

Salary

Validation Rule

List of flights

Flight ID

Route

Range of flight

Duration

Ticket price

Validation Rule

Validation Rule

Validation Rule

Schedule

ID

Flight ID

Date

Commander aircraft ID

Flying vehicles ID

Number of tickets

Lookup column with a definition of row source

Validation Rule, Input Mask

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: model and appointment of the flying vehicle, name of aircraft commander and he’s rank, route, range of flight, duration, date and cost of this flight.

  2. A select query with information about flights (model and appointment of the flying vehicle, name of aircraft commander and he’s rank, route, range of flight, duration, date and cost of this flight) that was made in the current month.

  3. An aggregate query that totals up the cost of the flights by dates.

  4. A parameter query that represents information about flights (model and appointment of the flying vehicle, name of aircraft commander and he’s rank, date and cost of this flight) by certain route.

  5. An action query that in the Air personnel table will increase salary of the aircraft commanders by 20%.

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

  7. A crosstab query of total cost of sold tickets by routes and models of the flying vehicles.

Create the forms:

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

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

3. A main form.

Create the reports:

1. Create «Air personnel» report by using wizard. Make a data grouping by names of aircraft commanders. The group Footer and the report Footer must include the total number of sold tickets.

2. Create report «Flights of the current month» in design view. In the report group data by dates, in the middle by routes. The group Footer and the report Footer must contain the average number of sold tickets and total cost of sold tickets.