Chapter 7: Problem 23
A birthdate attribute would appear for many entity types – for example students, employees, children. What is a birthdate likely to be: key or non- key?
Chapter 7: Problem 23
A birthdate attribute would appear for many entity types – for example students, employees, children. What is a birthdate likely to be: key or non- key?
All the tools & learning materials you need for study success - in one app.
Get started for freeAssuming you have experience with some database system, what data type would you use for surrogate keys?
Consider a library and the fact that books are loaned out to library members. Dates could be used heavily for the date a book was borrowed, the date the book was returned, and the due date for a book. Consider an entity type Loan that has attributes book identifier, member identifier, date borrowed, date due, date returned. What combination of attributes would be a key? Which attributes are key attributes? Which attributes are non-key attributes?
Draw an ERD that allows for marriages between possibly more than two people.
Draw an ERD involving employees and their dependents where each employee has a unique id number and where dependents of the same employee are numbered starting at 1. It may be rare, but we will allow for dependents of the same employee to have the same name and birthdates. Include typical attributes for an employee, and for a dependent include the birthdate, first and last names.
Consider the enroll in relationship used in this chapter. Suppose we must allow for a student to repeat a course to improve their grade. Develop an ERD and include typical attributes for student, course, etc. We need to keep a complete history of all course attempts by students.
What do you think about this solution?
We value your feedback to improve our textbook solutions.