Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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).
expand button
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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY