Easy
Given the following 'products' and 'categories' tables:
products:
| product_id | name | category_id |
|------------|-------------|-------------|
| 1 | Product A | 1 |
| 2 | Product B | 2 |
| 3 | Product C | 1 |
categories:
| category_id | name |
|-------------|-----------|
| 1 | Category 1|
| 2 | Category 2|
Which SQL query retrieves the names of products and their categories?
Edit
Similar QuestionsMore questions about SQL