Add a Customer
Add this customer to customers:
| column | value |
|---|---|
| first_name | Sana |
| last_name | Karim |
| sana.karim@example.com | |
| city | Cairo |
| country | Egypt |
| joined_on | 2026-10-06 |
Leave every other column to its default. Write the statement that inserts exactly one row.
Check query. After your statements run, this query is run on the changed data and its result is compared with the expected one:
SELECT first_name, last_name, email, city, country, joined_on, is_active
FROM customers
WHERE email = 'sana.karim@example.com';
Hint 1
Name the columns: INSERT INTO customers (first_name, last_name, ...) VALUES (...).
Reference solution
INSERT INTO customers (first_name, last_name, email, city, country, joined_on)
VALUES ('Sana', 'Karim', 'sana.karim@example.com', 'Cairo', 'Egypt', '2026-10-06');
Always list the column names in an INSERT: the values are matched to the columns by position, and a statement without a column list breaks silently when someone adds a column to the table. Columns you leave out get their default (is_active becomes 1) or NULL, and a NOT NULL column with no default must be listed, or the statement fails. The primary key customer_id is generated by the database.