Hello!

BrainTech - software solutions, web design and applications.

Contact

Module 2 – Database Modeling Exercise

Exercise: Hotel Database Model

Exercise: Hotel Database Model

Exercise „Exercise: Hotel Database Model“ on the hotel_db model — apply prior lessons to gosti, sobe, rezervacije, placanja, and zaposleni. After this exercise you should write the SQL reception or finance need daily, without copying solutions from the internet. Use gosti, sobe, rezervacije, placanja, and zaposleni from the hotel_db model. Save each step in a .sql file with comments on what you verified.

Task

  1. Identify entities: gosti, sobe, tip_sobe, rezervacije, placanja, zaposleni, usluge.
  2. Define attributes and column types.
  3. Draw cardinalities and relationships.
  4. Mark PK and FK on the ER diagram.
  5. Ensure no duplicated guest data in rezervacije.
  6. Export diagram and table list.

Sample solution

-- rezervacije: gost_id, soba_id, datum_od, datum_do, status

Goal: Master „Exercise: Hotel Database Model“ through hotel_db until you can write the queries or DDL reception and finance use every morning — then you are ready for exercises, JOIN tasks, and the final hotel project. Results must be reproducible: another student runs your scripts on a fresh hotel_db and gets the same outcome.

Design Wireframe
High Fidelity Design
Design development
Design development
Design development
Research development