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

Variant 10

Data base «Cinema»

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:

Cinema halls

Cinema_Hall_ID

Cinema_hall_Name

Number_of_seats

Validation Rule

Catalog_of_movies

Movie_ID

Movie_Name

Genre

Starring

Ticket_price

Validation Rule

Customers

Customer_ID

Customer_Name

E-mail

Cell_Phone

Input Mask

Movie screening

Screening_ID

Movie_ID

Cinema_Hall_ID

Date

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

Tickets booking

ID

Customer_ID

Screening_ID

Number_of_tickets

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: Customer_Name, Movie_Name, Genre, Cinema_hall_Name, Date, Time, Number_of_tickets and Cost.

  2. A select query with information (Customer_Name, Movie_Name, Genre, Cinema_hall_Name, Date, Time, Number_of_tickets and Cost) about cartoons screening in the current year.

  3. An aggregate query that totals up the cost of the tickets by each movie.

  4. A parameter query that represents information (Customer_Name, Movie_Name, Genre, Date, Time, Cost) by certain Cinema_hall_Name.

  5. An action query that in the table “Catalog_of_movies” will increase Tickets Price of cartoons in 3D by 10%.

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

  7. A crosstab query of total number of movies screening by movies and Cinema_hall_Name.

Create the forms:

1. Create «List of movies» form by using wizard on the basis of table «Catalog of movies». 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 «Movies» report by using wizard. Make a data grouping by Genres and Dates. The group Footer and the report Footer must include the total cost of the sold tickets.

2. Create report «Movie screening in the current year» in design view. In the report group data by Cinema_hall_Names, in the middle by MovieNames. The group Footer and the report Footer must contain the minimum and average number of sold tickets.