Codington
0 of 8 problems solved • 0%

Exercise prompt

Require a Service Name

Put NOT NULL after a column’s type to require a value on every row. The rule belongs to the table definition and applies to future inserts too.

Example

CREATE TABLE jobs (id integer, title text NOT NULL);

Your task

Create services with id integer followed by name text. Make the name mandatory. Insert service 1 with the name web.

Opening the database…