#1134

Bookings with a valid date range

Design a bookings table with start and end days: start_day and end_day are integers and required. The database must guarantee the end day is not before the start day. Columns: id — primary key; start_day; end_day.

Díreach CREATE/ALTER/DROP — ní gá SELECT ina dhiaidh sin.

Beidh toradh d'iarratais le feiceáil anseo

Gan scéim tosaithe

Tosaíonn an tasc seo gan táblaí — cruthóidh tú iad le CREATE TABLE.