Database Systems: Design, Implementation, & Management
12th Edition
ISBN: 9781305627482
Author: Carlos Coronel, Steven Morris
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 5, Problem 5P
Explanation of Solution
Crow’s Foot ER diagram for Tiny College:
The following data model shows the solution for the given question.
Explanation:
- In the above data model, the overlapping constraint (o) is used as a category symbol. Here the “Employee” supertype entity has optional subtype entity.
- The “Professor” and “School” are the current data entities which mean the user can get the data from the current
database ...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Observe the table ENROLLMENT:
ENROLLMENT
StudentID
StudentName MajorID MajorName
111
Joe
E
English
222
Bob
H
History
333
Lisa
H
History
Which of the following (regarding the relation ENROLLMENT) represents the deletion anomaly?
O Deleting a major ID may delete the major name
O Deleting a major may delete all information about a student
O None of the answers
O Deleting a student ID may delete a student name
O Deleting a student may delete all information about a major
Observe the table ENROLLMENT:
ENROLLMENT
StudentID
StudentName MajorID MajorName
111
Joe
E
English
222
Bob
H
History
333
Lisa
H
History
Which of the following (regarding the relation ENROLLMENT) represents the modification anomaly?
O If a major name changes, it may have to be changed in more than one record
O If a student decides to use a longer version of his or her name, we cannot accommodate that modification
O If a student ID changes, we may have to change the major ID as well
O If a major ID changes, we may have to change the student ID as well
O All of these answers
StayWell also rents out properties on a weekly basis to students attending summer school in the Seattle area. Design a database to meet the following requirements, using the shorthand representation and a diagram of your choice.
For each student renter, list his or her number, first name, middle initial, last name, address, city, state, postal code, telephone number, and e-mail address.
For each property, list the office number, property address, city, state, postal code, square footage, number of bedrooms, number of floors, maximum number of persons that can sleep in the unit, and the base weekly rate.
For each rental agreement, list the renter number, first name, middle initial, last name, address, city, state, postal code, telephone number, start date of the rental, end date of the rental, and the weekly rental amount. The rental period is one or more weeks.
Chapter 5 Solutions
Database Systems: Design, Implementation, & Management
Ch. 5 - Prob. 1RQCh. 5 - What kinds of data would you store in an entity...Ch. 5 - Prob. 3RQCh. 5 - What is a subtype discriminator? Give an example...Ch. 5 - Prob. 5RQCh. 5 - What is the difference between partial...Ch. 5 - Prob. 7RQCh. 5 - According to the data model, is it required that...Ch. 5 - Prob. 9RQCh. 5 - Prob. 10RQ
Ch. 5 - Prob. 11RQCh. 5 - Prob. 12RQCh. 5 - Prob. 13RQCh. 5 - When implementing a 1:1 relationship, where should...Ch. 5 - What is time-variant data, and how would you deal...Ch. 5 - Prob. 16RQCh. 5 - Prob. 1PCh. 5 - Prob. 2PCh. 5 - Prob. 3PCh. 5 - Prob. 4PCh. 5 - Prob. 5PCh. 5 - Prob. 6PCh. 5 - Prob. 7PCh. 5 - Prob. 8CCh. 5 - Prob. 9CCh. 5 - Prob. 10C
Knowledge Booster
Similar questions
- An EMPLOYEES table was added to the JustLee Books database to track employee information. Display a list of each employee’s name, job title, and manager’s name. Use column aliases to clearly identify employee and manager name values. Include all employees in the list and sort by manager name.arrow_forwardList the changes you would need to make to your answer for Question 11 if the requirements change so that you must store the year and the semester in which a student took a course and received a grade.arrow_forwardWhat is a primary key? What is the primary key for each of the tables in the Colonial Adventure Tours database shown in Chapter 1?arrow_forward
- Observe the table ENROLLMENT: ENROLLMENT TTE StudentID StudentName MajorID MajorName 111 Joe English 222 Bob History 333 Lisa H History Which of the following actions in the table ENROLLMENT will be affected by a modification anomaly (with its current 3 records)? None of the answers O Changing the name of Joe to Joseph O Changing the name of Lisa to Lizzy O Changing the name of Bob to Robert O Changing the name of English to English Literaturearrow_forwardThe Sports Physical Therapy database does not include a field for the hours that the therapist is working. For example, doing any sort of treatment requires to set up and break down of equipment, reading patients' charts, etc. In which table would you put the hours worked? What might be a better way to record when therapists begin their work and end their work? 1. Table: Patient -field (PatientNum, LastName, FirstName, Address, City, State, ZipCode, Balance) 2. Table: Session -field (SessionNum, SessionDate, PatientNum, LengthOfSession, TherapistID, TherapyCode) 3. Table: Therapist - field (TherapistID, LastName, FirstName, Street, City, State, ZipCode) 4. Table: Therapies -field (TherapyCode, Description, UnitOfTime)arrow_forwardConsider the data of the following two tables. Department DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo Sname Fname DepartmentID 111 Ali Ahmed 1 112 Sana Waqar 2 113 Afzal Ikram 2 There are only two departments and are already initialized globally, but students can be upto 100 and just defined globally. To maintain how many student’s record have been entered you can use global variable with name as count. Write a C++ program having: Structures, structure definitions and required initializations for the above scenario. Function which takes input data (RollNo, Sname, Fname and DepartmentID) of student from user within the function, then verify that the DepartmentIDexists in Department or not? If exists then copy DName and ContactNo in the student record along with above input, otherwise just display a message that department does not exists. For example the following record…arrow_forward
- Mr. Rohan has constructed a table called'student,' which contains information such as the student's roll number, name, class, and section. He is now perplexed as to how to establish the main key. So, how do you find the primary key column?arrow_forwardQuestion 2 Refer to the sample tables below. Tables: adult (id(pk), name, spouse_id(fk)) foreign key (spouse id) references adult(id) -- child (id(pk), name) Fill in the blank: The foreign key in the table adult is called a foreign key. • Previousarrow_forwardCreate the database name Company which consists of one Entity name Employee which consists of 10 attributes (ID/First Name/Last Name/CNIC/Gender/Department/Salary/Address/Age) ID should be primary key Insert at least 10 records in the Entity Employee with respect to their type. Implementation the example of stored procedure now creates the stored procedure which: Have an ability to insert the record in the table. Have an ability to delete the record in table. Have an ability to update the record in the table. Have an ability to display the record in the table.arrow_forward
- Joan Yancey has been asked to create a database for her company, Yancey Shipping. The database is to track employees and the special projects to which the employees may be assigned. A special project can have between 2 and 5 employees assigned to it. She has determined that she needs the following tables and fields in her database:(Table 1) Employee Information:Fields - Last Name, First Name, Street Address, City, State, Zip Code, Social Security Number, Phone Number, Hourly Pay Rate, and Project Number (Table 2) Project Information:Fields - Project Number, Project Name, Project Leader, Project Location, Total Hours, and Actual Completion Date What data type should Joan Yancey use for the Actual Completion Date field and why?arrow_forwardClosely examine the following tables and use it to answer the questions that follow: department course student_type student_category Student registration registration_type Suppose that the following are true: - all id column are primary keys in whichever table they are - the dept_id in course table is foreign key that is referencing the id column in the department table - the foreign keys stud_type_id, stud_cat_id in the student table are referencing the id columns in the student_type and student_category tables respectively. - the coursecode and stud_id columns in the registration table are foreign keys in the course and student tables respectively. 1. Design an Entity Relationship Diagram for the system above. 2. Write query that would return the names and contacts of all Local students. 3. Write a query that would return names, contact and locations of all departments that has a location text with Ave 3 as part of it. [hint: use the LIKE clause with “_” or “%”] 4. What would…arrow_forward1. Determine the functional dependencies that exist in the following table and then convert this table to an equivalent collection of tables that are in third normal form. OFFICE (OFFICE NUM, OFFICE NAME, (ADDRESS, SQR_FT, BDRMS, FLOORS, MONTHLY RENT, OWNER_NUM)) 2. Determine the functional dependencies that exist in the following table and then convert this table to an equivalent collection of tables that are in third normal form. PROPERTY (PROPERTY ID, OFFICE NUM, ADDRESS, SQR_FT, BDRMS, FLOORS, MONTHLY RENT, OWNER NUM, LAST NAME, FIRST NAME)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage Learning
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr