(а) Refer to Figure Q3(a)(i) for the data model for equipment loans. Customer Equipment Loan id equipmentCode name id name equipmentCode address description RentalRatePerDay contact startDate dateOfBirth returnDate occupation DamageReport reportId damageType Figure Q3(a)(i) (i) Derive the logical model from the data model in Figure Q3(a)(i).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
(a)
Refer to Figure Q3(a)(i) for the data model for equipment loans.
Customer
Equipment
Loan
id
equipmentCode
name
id
name
equipmentCode >e
address
description
contact
startDate
RentalRatePerDay
dateOfBirth
returnDate
occupation
DamageReport
reportId
damageType
Figure Q3(a)(i)
(i)
Derive the logical model from the data model in Figure Q3(a)(i).
Transcribed Image Text:(a) Refer to Figure Q3(a)(i) for the data model for equipment loans. Customer Equipment Loan id equipmentCode name id name equipmentCode >e address description contact startDate RentalRatePerDay dateOfBirth returnDate occupation DamageReport reportId damageType Figure Q3(a)(i) (i) Derive the logical model from the data model in Figure Q3(a)(i).
(ii)
Refer to the description of columns in Table Q3, and implement the tables using the
appropriate SQL statements. List the SQL statements in the order that they should
be executed.
Description
A string that is exactly 9 characters. The first is a letter which is either S or
T and last character is an alphabet. The characters in between are digits.
Columns
id
Name (customer)
A string that is exactly 50 characters.
A string that is at most 100 characters.
A string that is exactly 8 digits.
A date. A customer must be at least 21 years old in the year registered.
A string that is at most 30 characters. This attribute is optional.
A string that is exactly 5 characters.
address
contact
dateOfBirth
occupation
equipmentCode
name (equipment) A string that is at most 50 characters.
description
RentalRatePerDay A decimal number between 4 and 50, inclusive.
startDate,
A string that is at most 255 characters. This attribute is optional.
returnedDate
reportld
damageType
Both are date but returnedDate is optional. returnedDate must not be
earlier than startDate.
An auto-generated value starting with 1 and an increment of 1
A string that is at most 16 characters, and is either 'Wear and tear' or
'Customer Damaged'
Foreign key constraints
Minimum cardinality between Customer and Loan is 1:N, M:0 with delete and update cascaded.
Minimum cardinality between Loan and Equipment is 1:N, M:0 with delete disallowed and
update cascaded.
Minimum cardinality between Loan and DamageReport is 1:1, M:0 with delete and update
disallowed.
Table Q3
Transcribed Image Text:(ii) Refer to the description of columns in Table Q3, and implement the tables using the appropriate SQL statements. List the SQL statements in the order that they should be executed. Description A string that is exactly 9 characters. The first is a letter which is either S or T and last character is an alphabet. The characters in between are digits. Columns id Name (customer) A string that is exactly 50 characters. A string that is at most 100 characters. A string that is exactly 8 digits. A date. A customer must be at least 21 years old in the year registered. A string that is at most 30 characters. This attribute is optional. A string that is exactly 5 characters. address contact dateOfBirth occupation equipmentCode name (equipment) A string that is at most 50 characters. description RentalRatePerDay A decimal number between 4 and 50, inclusive. startDate, A string that is at most 255 characters. This attribute is optional. returnedDate reportld damageType Both are date but returnedDate is optional. returnedDate must not be earlier than startDate. An auto-generated value starting with 1 and an increment of 1 A string that is at most 16 characters, and is either 'Wear and tear' or 'Customer Damaged' Foreign key constraints Minimum cardinality between Customer and Loan is 1:N, M:0 with delete and update cascaded. Minimum cardinality between Loan and Equipment is 1:N, M:0 with delete disallowed and update cascaded. Minimum cardinality between Loan and DamageReport is 1:1, M:0 with delete and update disallowed. Table Q3
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY