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.

AttemptNew CodeNew CapacityValid or invalid
1A1715
2C3116
3D420
4E5312.5
5NULL10

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Relational Database Structures Questions: