Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
2. Question 1
Summary

Instruction

Let's begin the first exercise.

Exercise

A local publishing house has organized a short story competition. They need a table to store information about the entries they receive. Create a table entry consisting of the following columns:

  • id – an integer.
  • title – a text of up to 250 characters.
  • date_submitted – the date when the entry was submitted.
  • category – a text up to 5 characters.

The column id is the primary key.

Stuck? Here's a hint!

Type:

CREATE TABLE entry (
  id integer PRIMARY KEY,
  title varchar(250),
  date_submitted date,
  category varchar(5)
)