Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a new database in your instance of Postgres. The database should contain information about a festival that has several zones. Each zone is dedicated
Create a new database in your instance of Postgres.
The database should contain information about a festival that has several zones. Each zone is dedicated to a specific topic eg music, food court, ecological zone, etc. Every zone also has employees one employee can work at different zones
Write SQLDDL statements to create a database, that should contain the following four tables:
zone: id name, designation food concertmusic info opening date, closing date. Primary key id auto generated;
employee: id name, surname, date of birth, gender, status working vacation, quit salary, experience description can be empty Primary key id auto generated;
participant: id name, surname, date of birth, gender, preferred zone should be chosen from the zone table Primary key id auto generated;
employeezones: empid zoneid two dates when employee started and ended can be empty working in this zone. This table stores workplaces of employees. One employee can work in multiple zones at the same time. Primary key a group of two attributes empid zoneid
You can write create or replace commands for convenience.
Use foreign key constraints to maintain referential integrity. Add useful check constraints as well.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started