Question from the SQL - Fundamentals test

Archived

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?

Author: Vincent CotroStatus: Archived(New question!)Question passed 410 times
0
Community EvaluationsNo one has reviewed this question yet, be the first!