#+title: Database design and implementation #+subtitle: Domain: Accounting for the submission of laboratory work #+date: 2024H1 * Task Design, implement, and analyze a complete relational database management system for a domain of your choosing. The project must fulfill the following mandatory requirements: 1. Domain Analysis & Conceptual Modeling - Describe the domain in plain paragraphs of text. - Define all primary domain entities and their attributes. - Design formal ER-diagrams and object diagrams. 2. Database Design & Population - Architect a normalized relational schema , utilizing appropriate data types and foreign key constraints. - Build a custom data generation program to programmatically populate the database schema. 3. SQL Implementation & Performance Analysis - Formulate 8 complex analytical SQL queries covering multi-table joins, aggregations, groupings, filtering, subqueries, and set operations. - Evaluate and document the execution plans generated by the query planner for each implemented query to analyze performance metrics and operational efficiency. * Documentation The exported report can be found at [[https://git.michalec.dev/uni/term-04/databases/coursework/report.pdf][this link]]. * Showcase #+caption: Object diagram #+attr_html: :width 400em [[https://git.michalec.dev/uni/term-04/graph-theory/coursework/decision-tree.png][https://git.michalec.dev/uni/term-04/databases/coursework/od.png]] #+caption: Entity-relation diagram #+attr_html: :width 700em [[https://git.michalec.dev/uni/term-04/graph-theory/coursework/decision-tree.png][https://git.michalec.dev/uni/term-04/databases/coursework/erd.png]] #+caption: Database schema (ru) #+attr_html: :width 1000em [[https://git.michalec.dev/uni/term-04/graph-theory/coursework/decision-tree.png][https://git.michalec.dev/uni/term-04/databases/coursework/dbs_ru.png]] #+caption: Database schema (en) #+attr_html: :width 1000em [[https://git.michalec.dev/uni/term-04/graph-theory/coursework/decision-tree.png][https://git.michalec.dev/uni/term-04/databases/coursework/dbs_en.png]] * Unlicense #+include: UNLICENSE verse