Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment Title Modelling College This assignment relates to the following Course Learning Requirements: CLR 1 : Follow lab policies and procedures for etiquette, software licensing
Assignment Title Modelling College
This assignment relates to the following Course Learning Requirements:
CLR : Follow lab policies and procedures for etiquette, software licensing requirements and lab
submissions
CLR : Relate knowledge of design theory to provide solutions in response to business database software
deveopment proposals
CLR : Explore basic Entity Relation Diagram ERD components entities, attributes, relationships
CLR : Define key, candidate key, prime key, foreign key, surrogate key, and determinant
CLR : Communicate solutions electronically, in written and visual form
CLR : Differentiate between identifying and nonidentifying relationships
CLR : Use workplace tools to model database design using ER diagrams
CLR : Map an ERD to a Relational Database
CLR : Use Data Definition Language DDL to add, modify and delete database objects, ie tables, views,
indexes
CLR : Choose appropriate data types to create table
CLR : Enforce entity integrity and referential integrity by choosing primary and foreign key constraints
CLR : Create and manipulate database objects
CLR : Research a topic on sustainability and build a database
Objective of this Assignment:
Fictional Situation: You have been given a contract to develop a database design for a new college. The college
currently has a single campus, but two more campusses are expected to be operational within the next years.
In this assignment, you will develop a model using MySQL Workbench and manually create the necessary DDL
statements to build tables for this new college environment.
PreAssignment Instructions:
Complete Modules
Complete Labs
Business Rules:
These business rules must be reflected in the model. Pay close attention to the wording of the rules to ensure the
correct cardinality is used.
A college must have at least one campus
Each campus is tied to a single college
A campus has many departments, and each department reports to a single campus
A department offers many courses
Each course is tied to one department
A student must enroll in at least one course
Each course must be attended by at least one student
Data To Be Recorded:
Primary keys
Foreign keys
Include the following data in your model, include any other columns you deem appropriate:
Department name: mandatory
Department location: mandatory
Course code: mandatory
Course duration: mandatory
Course name: mandatory
Student number: mandatory
Student first and last names: mandatory
Student phone number: optional
Assignment Tasks:
Step : Draw draft of the ERD:
On paper, draw the ER diagram based on the business rules stated above. Ensure the manytomany relationship
is resolved. The diagram must include the entity names, relationships, and cardinalities only. Do not include
column names. Note: Review the business rules carefully so they are being correctlly reflected in the model.
On the diagram, identify the three entities involved in the resolution of the manytomany by placing an asterisk next
to the entities.
Take a photo of your solution. Make sure the entire model is visible and legible.
Step : Design ER diagram
Using MySQL Workbench, build the ER model based on the drawing from step Refer to Lab on how to create a
model in Workbench.
The diagram should include:
Entities
Attributes within entities
Relationships between entities
All relationships should be nonidentifying except for those involving the assocativejunction table, which
should be identifying relationships
Cardinalities
Primary and Foreign keys
Ensure each table has no duplicate columns pay close attention to the Workbench icon used to define
the relationships
Create an image of the model File Export Export as PNG
Step : Write DDL statements
Referring to the model created in Step write the SQL DDL statements to perform the following:
Create database Assignment
Create all tables:
o Include primary and foreign keys
o Choose the datatype and length for each column as you see fit
o All primary keys, foreign keys must be specified in the CREATE TABLE statement
All DDL statements must be written manually. Do not forwardengineer the SQL from MySQL Workbench
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