Skip to content
C

Add an Email Column

Mediumsql

The customers table currently has only id and name. Write an ALTER TABLE statement that adds a new nullable email column of type TEXT. The checker will insert a row using the new column and read the table back to confirm it exists.

sql
CREATE TABLE customers ( id INTEGER PRIMARY KEY, name TEXT NOT NULL );

Starting data:

sql
INSERT INTO customers (id, name) VALUES (1, 'Asha'), (2, 'Rohan');

Input (stdin)

Output

Run your code to see output here...