1.Add a task
BeginnerAdd a task with id 6, title Prepare demo, status open, priority 2, assigned to Meera. Then show the new row.
Show hint
List the columns after the table name, then the values in the same order.
Show solution
INSERT INTO tasks (task_id, title, status, priority, assignee)
VALUES (6, 'Prepare demo', 'open', 2, 'Meera');
SELECT * FROM tasks WHERE task_id = 6;task_id | title | status | priority | assignee
--------+--------------+--------+----------+---------
6 | Prepare demo | open | 2 | MeeraNaming the columns is optional when you supply a value for every column, but it is safer. The statement keeps working if someone later adds or reorders columns.