There are two tables. the first one stores a list of something, and there is a special column for categories that are written there in the form of numbers. In the second table "decryption" categories. Those. each digit corresponds to a word.
With the help of JOIN'a you can make so that on the page there was one table in which instead of a digit in the category column there was a word corresponding to a digit.
But how to do the same, if the first table in the category column is not a single digit?
Example:
Table 1
+---------+----+ |bla-bla | 3| +---------+----+ |bla-bla | 1 2| +---------+----+
table 2
+--+---------+ | 1|type-1 | +--+---------+ | 2|type-2 | +--+---------+ | 3|type-3 | +--+---------+
The result should be this:
+---------+-------------+ |bla-bla |type-3 | +---------+-------------+ |bla-bla |type-1 type-2| +---------+-------------+