CREATE TABLE HotelStays
(
roomNum INTEGER NOT NULL,
arrDate DATE NOT NULL,
depDate DATE NOT NULL,
guestName CHAR(30) NOT NULL,
PRIMARY KEY (roomNum, arrDate)
);
ISSUE: a new entry (for a new guest) could be put in for a room number, even before the existing guest has checked out: