Logical Design Lab
Logical Design Lab
Lab Objectives
1. Analysis the Written scenario for the database system to extract the entities,
relationships and constrains to build the conceptual design.
2. Implement the ER-Model for the conceptual design that has been analysed using one
of the design tools.
3. Apply the mapping rules.
4. Implement the ER-Model for logical design for the system.
A University contains several Schools (Colleges) Each school has a Name, Code,
several Locations and a Phone number, each school has a dean to manage its which
is also an instructor.
Each School contains one or more departments each department has a Name,
Code, and a head from one of the instructors and a single Location, each
Department offers one or more programs. A program has a Code Name and a
Level. Each course is offered by one department and have a Number, Name, Credit
Hours, Prerequisite and Description. each program contains many courses.
Semester is defined by an ID and has a Staring Date and End Date. In each
semester Department may offer one or more sections for each course in which a
Section has a number, Capacity, Location, and an assigned Instructor to teach it, a
section has one Instructor to teach, and Instructor can teach many different
Sections.
One course has many sections, but each section is related to only one course.
The instructor can be in only one school, and school has many instructors, and the
university keep track of Instructor ID, Name, different Addresses, Starting Date
and his or her head which will be one of the instructors, salary, and annual salary.
A student has an ID, Name, Sex, Age, date of birth, and different emails. The
student is enrolled in only one program, but a program can contain many students.
Students can be enrolled in many sections of deferent courses. and section can have
many students enrolled.
30201120 Database Design & Development
Lab1: Logical Design
Wed. 27-03-2024
1.
30201120 Database Design & Development
Lab1: Logical Design
Wed. 27-03-2024
2.
3. mapping steps
Colleges: (name, code, country, city, street, building number, floor, phone)
Instructor: (id, fname, mname, lname, country, city, street, building num, apt num , start_date,
salary, headOfInstructor)
Section: (number, Capacity, building number, floor, room num, assigned Instructor,
course)
m:n relations
Colleges: (name, code, country, city, street, building number, floor, phone)
Instructor: (id, fname, mname, lname, country, city, street, building num, apt num , start_date,
salary, headOfInstructor_id, college_code)
Section: (number, Capacity, building number, floor, room num, assigned Instructor,
courseId, semester_id)
Student: (id, fname, mname, lname, sex, DOB, sectionNum, semester_id, program_code)
Final schema
Colleges: (name, code, country, city, street, building number, floor, phone)
Instructor: (id, fname, mname, lname, country, city, street, building num, apt num , start_date,
salary, headOfInstructor_id, college_code)
Section: (number, Capacity, building number, floor, room num, assigned Instructor,
courseId, semester_id)
Student: (id, fname, mname, lname, sex, DOB, sectionNum, semester_id, program_code)
Colleges: (name, code, country, city, street, building number, floor, phone)
Instructor: (id, fname, mname, lname, country, city, street, building num, apt num , start_date,
salary, headOfInstructor_id, college_code)
Section: (number, Capacity, building number, floor, room num, assigned Instructor,
courseId, semester_id)