3 Create an Entity-Relationship Model to represent the data requirements of the problem given below. Specify the cardinalities of relationships and all-important constraints. Also mention the assumptions if you have made any. A person can be an employee, alumnus or a student. For person P_id (identifier), date of birth, gender and contacts are stored. Person can have more than one contact numbers and there are no other types of person that exists. An instance of person can belong to more than one type. Date hired and salary is the unique attributes of employee. For alumnus degree is required to be stored that comprises of year and designation. Major department is the attribute of student. A student can be a graduate student or an undergraduate student but not both at the same time. No other type of student exists. For graduate student test score is stored and for undergraduate student class standing is stored. Employee can be faculty, staff or others but not both at the same time. For faculty rank is stored and for staff position is stored. Undergraduate student can issue books from the library. An undergraduate student can issue at most one book and a book is issued by no student or one student. Issue date, return date and fine amount are stored when undergraduate student issues a book. Book has attributes b_id, b_title and b_category and b_id is the primary key for the book. Undergraduate student can get enrolled for more than one courses and a course is enrolled by at least one undergraduate student. Course has attributes course_id (identifier), credit, description and code. Courses can have one, none, or many prerequisites. Each course is prerequisite of zero, one or many courses. Department offers one or more courses and a course gets offered by one or many departments. Every instance of department has unique dept_id and other attributes are name and location that needs to be stored. Location is composed of city, postal code and zip code.
3 Create an Entity-Relationship Model to represent the data requirements of the problem given below. Specify the cardinalities of relationships and all-important constraints. Also mention the assumptions if you have made any.
A person can be an employee, alumnus or a student. For person P_id (identifier), date of birth, gender and contacts are stored. Person can have more than one contact numbers and there are no other types of person that exists. An instance of person can belong to more than one type. Date hired and salary is the unique attributes of employee. For alumnus degree is required to be stored that comprises of year and designation. Major department is the attribute of student. A student can be a graduate student or an undergraduate student but not both at the same time. No other type of student exists. For graduate student test score is stored and for undergraduate student class standing is stored. Employee can be faculty, staff or others but not both at the same time. For faculty rank is stored and for staff position is stored. Undergraduate student can issue books from the library. An undergraduate student can issue at most one book and a book is issued by no student or one student. Issue date, return date and fine amount are stored when undergraduate student issues a book. Book has attributes b_id, b_title and b_category and b_id is the primary key for the book. Undergraduate student can get enrolled for more than one courses and a course is enrolled by at least one undergraduate student. Course has attributes course_id (identifier), credit, description and code. Courses can have one, none, or many prerequisites. Each course is prerequisite of zero, one or many courses. Department offers one or more courses and a course gets offered by one or many departments. Every instance of department has unique dept_id and other attributes are name and location that needs to be stored. Location is composed of city, postal code and zip code.
Step by step
Solved in 2 steps with 1 images