Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions courses/backend/databases/week1/assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ erDiagram
string description
datetime created
datetime updated
date due_date
datetime due_date
int status_id FK
}
USER_TASK {
Expand Down Expand Up @@ -108,7 +108,7 @@ INSERT INTO user (name, email, phone) VALUES ('My Name', 'my_email@example.com',

-- Part 1, Question 2: Insert a new task
INSERT INTO task (title, description, created, updated, due_date, status_id)
VALUES ('Learn SQL', 'Practice database queries', datetime('now'), datetime('now'), date('now', '+7 days'), 2);
VALUES ('Learn SQL', 'Practice database queries', datetime('now'), datetime('now'), date('now', '+7 days'), (SELECT id FROM status WHERE name = 'In progress'));
```

## 2. Events Startup Project
Expand Down
Loading
Loading