DataBase Cinema

Database Cinema(XAMPP)

Diagrams

PROCEDURES XAMPP

  1. Adding data to the FilmType table (filmType and Description inserts the user as running the procedure).

Launch of the procedure:

Result:

2. Deletion procedure, deletes the film type after his id (user enters id and then the movie type is deleted)

Result:

3. Search by entered letter (user enters movie type First letter and then all movie types are shown) )

Launch of the procedure:

Result:

4. Updating procedure. The user enters the updated movie type by the inserted id.

Launch of the procedure:

Result:


ALTER TABLE filmtype ADD test varchar(25);
ALTER TABLE tabelinimi ADD veergunimi tüüp – Изменение структуры таблицы – добавление нового столбца
ALTER TABLE tabelinimi DROP veergunimi tüüp – Изменение структуры таблицы – удаление столбца
ALTER TABLE filmtype ADD test int;
ALTER TABLE filmtype DROP test;
ALTER TABLE tabelinimi DROP veergunimi tüüp – Изменение структуры таблицы – удаление столбца

Launch of the procedure:

Result:

Launch of the procedure:

The result of the procedure:

Launch of the procedure:

Result:

Launch of the procedure:

Result:


  • На оценку 3 – выполнить все процедуры, о которых учитель рассказывал на уроке /в видео + создать 2 процедуры (на основе базы данных прикрепленной ниже): (Assess 3: Perform all the procedures the teacher described in class/video + create two procedures (based on the database attached below):)
  1. Add data (INSERT) to any arbitrary table AB cinema theatre (

Launch of the procedure:

Result:

2. Zanr to delete table entries by entered id (На удаление записей в таблице žanr по введенному id) 

Launch of the procedure:

Result:

3. To delete the table by the name entered (the table must not contain a secondary key)

Launch of the procedure:

Result:

  • На оценку 4 выполнить все задания на оценку 3 + добавить 2 процедуры на обновление (UPDATE) и изменение (ALTER) таблицы режисер. 

1.1. Add Updates (UPDATE) (first name)

Result:

1.2. Add Updates (UPDATE) (Surname)

Launch of the procedure:

Result:

2. Change (ALTER) table director 

Launch of the procedure:

Result:

  • На оценку 5 выполнить все задания на оценку 4 + добавить свою процедуру с действием отличным от предыдущих. 

Launch of the procedure:

Result:

Estonian version