Back Practice ↓

Related Practice & In-Depth Concepts

↑ Read lesson

Task:The `users` table already exists. Write a query to create the `orders` table. It should have an `id` column that is the PRIMARY KEY, and a `user_id` column (INTEGER) that is a FOREIGN KEY referencing the `id` column in the `users` table.
SQL Query Editor
No results returned. Press Run Query (or Cmd/Ctrl + Enter) to execute.