Answer the question
In order to leave comments, you need to log in
How to write a SQL JOINS query?
There is a shop_products table.
id | category_id
--------------------
1 | 79
2 | 59
3 | 784
| 54
5 | 99
There is a shop_category_i18n table.
id | name
--------------------
79 | Toys
59 | TVs
78 | Keyboards
54 | Furniture
99 | Antiques
You need to get the following result:
id | name
--------------------
1 | Toys
2 | TVs
3 | Keyboards
4 | Furniture
5 | Antiques
category_id = id (in table shop_category_i18n).
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question