There are two tables Tab1 and Tab2. Table 1 contains a list of numbers, for example:
100 101 102 ... 110 Table 2 contains a list of categories (column 1) and numerical matches (column 2), for example:
| Кат1 | 3 | | Кат2 | 2 | | Кат3 | 5 | | Кат4 | 1 | It is necessary to obtain the resulting table Tab3, which will contain a list of numbers from Tab1 and a list of correspondences of categories from Tab2. The index from column 1 indicates how many numbers from Tab1 belong to the specified category. The resulting table should look like this:
| 100 | Кат1 | | 101 | Кат1 | | 102 | Кат1 | | 103 | Кат2 | | 104 | Кат2 | | 105 | Кат3 | | 106 | Кат3 | | 107 | Кат3 | | 108 | Кат3 | | 109 | Кат3 | | 110 | Кат4 | Actually, the problem is that I do not understand the principle by which Tab1 and Tab2 can be linked in order to get a result.