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
1
Community EvaluationsNo one has reviewed this question yet, be the first!
19
Select only distinct values in a column using SQL13
Write the SQL query to delete a column from a table47
Write a SQL query to retrieve the list of employees with a salary greater than 5100.12
Write a SQL query to retrieve the titles of books written by 'John Smith'.16
Which SQL keyword is used to sort the result of a SELECT statement?17
Write a SQL query to insert data into a table18
Update a column in an SQL table