A facilities database contains exactly 12 rows in Room and exactly 8 rows in Asset. RoomID is Room's primary key, and AssetID is Asset's primary key. Asset.RoomID is a foreign key referencing Room.RoomID.
Consider four independent designs for Asset.RoomID:
Here, NULL does not reference any room. No other constraints apply. For each design, enter the minimum and maximum possible numbers of distinct Room rows referenced by the 8 assets. Give exact integers.
Unlock full course notes by signing up
Checking proposed room records
A Room relation has two attributes: Code and Capacity. Code is its primary key and must be a nonempty text value. Capacity is the number of seats and must be a positive integer. The existing tuples are (A17, 12) and (B24, 20).
For each proposed insertion, enter valid or invalid. In the table, NULL means that no Code value is supplied. Assume the stated rules are the only constraints.
Evaluate every insertion independently against the original two tuples.
Tracking rows and attributes
A recreation centre initially stores 18 tuples in Reservation(ReservationID, MemberID, SessionID, CreatedOn). A maintenance operation deletes four existing tuples, inserts seven valid new tuples with previously unused ReservationID values, and adds one attribute named AccessNote to the relation.
All changes succeed, and no other tuples or attributes change. Find the final cardinality in rows and the final degree in attributes. Enter each answer as an exact whole number.
Checking complete foreign-key pairs
A fitness centre stores the relations shown below. ScheduledSession has the composite primary key (StudioID, SlotCode). CheckIn has primary key CheckInID and a foreign key (StudioID, SlotCode) referencing that complete ScheduledSession key. Both foreign-key attributes must have values. Repeated studio-slot pairs are allowed in CheckIn.
A referenced ScheduledSession tuple cannot be deleted while a CheckIn tuple still refers to it. No related tuples are changed automatically. Assume these are the only constraints.
Which statements are true? Select every true statement. Evaluate each proposed operation independently from the initial data.