#+title: Functional capabilities of databases #+date: 2024H2 * Task :PROPERTIES: :CUSTOM_ID: task :END: 1. Create a view that encapsulates the query. Write a request, using a representation in itself. The view displays a table in which a number is calculated for each teacher the number of laboratory work assigned to him and the number of groups in which he has already taken them. 2. Write triggers that automate the collection of statistical information about the number of laboratory work for each subject. 3. Create users and grant them various access rights to the view and the tables that participate in it. 4. Create a function and use it in a query. Create a procedure that will create new records in the tables based on certain conditions. 5. Select a specific transaction isolation level and demonstrate the presence or absence of artifacts: /Dirty Read/, /Non‑Repeatable Read/, and /Phantoms/. * Documentation :PROPERTIES: :CUSTOM_ID: documentation :END: The exported report can be found at [[https://git.michalec.dev/files/uni/term-05/databases/coursework/report.pdf][this link]]. * Unlicense :PROPERTIES: :CUSTOM_ID: unlicense :END: #+include: UNLICENSE verse