Professional Documents
Culture Documents
This data dictionary details the database used for lecture examples and workshop tasks in Systems
and Database Design. Use it to gain a better understanding of the database structure, and as an
example of a data dictionary when creating your own in Assignment 2. Module 4 introduces data
dictionaries, Module 6 covers data types, and Module 7 covers constraints and other column details.
“job_history” table (stores details about prior jobs held by employees in the company)
Column Name Data Type & Length Null Constraints Other
employee_id INT NOT NULL FK (employee.employee_id)
start_date DATE NOT NULL
end_date DATE NOT NULL
job_id VARCHAR(10) NOT NULL FK (job.job_id)
department_id SMALLINT NULL FK (department.department_id)
Table Level Constraints:
PRIMARY KEY (employee, start_date)
CHECK (end_date > start_date)
“job_grade” table (stores details about the grade levels used by the company)
Column Name Data Type & Length Null Constraints Other
grade_level CHAR(1) NOT NULL PK
lowest_sal MONEY NOT NULL
highest_sal MONEY NOT NULL
Table Level Constraints:
CHECK (highest_sal > lowest_sal)