(a)
Change the requirements specified in question 7 if the student must be assigned an advisor who is in the department in which the student is majoring.
(a)
Explanation of Solution
The given DBDL in question 7 is as follows:
The changes in the DBDL after assigning an advisor who is in the department in which the student is majoring is as follows:
Since the department from which the student is majoring and the department of the advisor must be the same. Therefore, a new relation studentAdvisordept should be created in which each combination of StudentNum and AdvisorNum will be related to a common department.
(b)
Change the requirements specified in question 7 if the student’s advisor does not necessarily have to be in the department in which the student is majoring.
(b)
Explanation of Solution
The given DBDL in question 7 is as follows:
The changes in the DBDL after assigning an advisor who is not required to be in the department in which the student is majoring is as follows:
Since the department from which the student is majoring and the department of the advisor need not be the same. So, the DeprtmenttNum in Student table will refer to the DepartmentNum in Department table.
Want to see more full solutions like this?
Chapter 6 Solutions
EBK CONCEPTS OF DATABASE MANAGEMENT
- List 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 the difference between disabling a constraint and dropping a constraint?arrow_forwardA Bank has many customers. Attribute for customer includes customer number, name, address (street, city, state and zip code), sex and date of birth. Customer can have multiple accounts. The bank does not allow join account (one account per customer). Type of account offer by the bank are Saving, Current and Fixed Deposit. Attribute for account are account no, account type, and account balance. Each of the account can only exist in a particular branch. Attribute for branch are branch no, branch name and address (street, city, state and zip code). Customer can open different account at different branch. Draw an ER diagram for the above situation. Identify the entity, attributes, primary key, relationship and multiplicity constraint in the ER diagram.arrow_forward
- 10 points QUESTION 19 Display each retail customer's number and their total number of retail orders who ordered in the year 2003' and '2004' (Hint: date related functions, group functions and group by clause will be needed)arrow_forwardPlease I want the EER or E-R Digram for this question: A patient is identified by patient id, and admission date. • A patient must be either an Emergency patient or a resident patient. • We must record the checkback date for Emergency patient. • Only resident patient is assigned to one room. Room has a unique number, degree, and floor number. • For each room there are a number of beds each of which has a bed number, specification. If a room is deleted, you need not keep track of its beds any longer. • Both emergency patient and resident are cared for by a responsible Doctor. Doctor is identified by Doctor number. For each Doctor, the name, several specialty, and years of experience must be recorded. • Doctors prescribe medicine for patients. Medicine is identified by trade name that has scientific name and formula. The medicine depends on another medicine to be taking before. • A doctor could prescribe one or more drugs for several patients, and a patient could obtain prescriptions…arrow_forwardFind your group number• The remainder after division of second to last digit of your student id by 3 is a.• The last digit of your student id is b.• Your group number is ab, which is an integer between 0 and 29.• If your group number is equal to ab=00 then take it as ab=01.Examples:• Student Id = 290316027 → Group = 27• Student Id = 290315043 → Group = 13• Student Id = 280315061 → Group = 01• Student Id = 270316085 → Group = 25• Student Id = 290315027 → Group = 27 my student Id is 280316014 but i didnt calculate ab.Can you help me .Thank you.arrow_forward
- Write the SQL statements to create all of the necessary tables to represent the above diagram, representing as many constraints as possible. Note: you do not need to worry about specifying types for the fields, but you do need to provide suitable foreign key option(s). When playing a game, the home team name should be stored in attribute htname and the away team name should be stored in atname.arrow_forwardDetermine the sorts of books that are presently available in the inventory. Only one of each category should be included.arrow_forwardPlease convert this eerd to relation. Thanks!!arrow_forward
- Consider the following ER diagram: storcid address description value Displays Store Memorabilia The above diagram represents information pertaining to stores and the memorabilia that is displayed within the stores. a) Write the SQL statements to create the necessary tables to represent the above diagram, representing as many constraints as possible. Note: you do not need to worry about specifying types for the fields, but you do need to provide suitable foreign key option(s).arrow_forwardUSE NORTHWIND DATABASE Write a SELECT statement using the CASE function. The statement returns two columns basedon how many orders the customer has in the database. The first column is the customer name andthe second column, Membership Type, is based on which case applies to the customer:If the customer has more than 25 orders they are a Diamond Customer.If the customer has more than 15 orders they are a Gold Customer.If the customer has more than 10 orders they are a Silver Customer.If the customer has more than 5 orders they are an Iron Customer.Otherwise the customer is a Valued Customer.arrow_forwardSQL Helparrow_forward
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr