Codington
0 of 8 problems solved • 0%

Exercise prompt

Choose the Column Types

Use integer for a whole number, text for a name and boolean for a true or false flag. In an INSERT, quote text and write the Boolean value as TRUE or FALSE.

Example

CREATE TABLE jobs (id integer, title text, active boolean); INSERT INTO jobs (id, title, active) VALUES (7, 'backup', false);

Your task

Create services with columns id (integer), name (text) and enabled (boolean), in that order. Insert service 1, named api, with enabled set to true.

Opening the database…