So, I am creating an SQL view for more readable data, which I will use for reporting. I have one table that stores field data (keyword identifiers) for questions in a section on a website. Column 3 is a field with several keywords and is stored in DB limited by chr (185).
Table 1
Column1 | Column2 | Column3
4456 | 2323 | ¹8661¹8662¹
I have a second table in which the identifiers of keywords and their meanings are placed.
table 2
Column1 | Column2
4456 | val1
2323 | val2
8661 | val3
8662 | val4
A view joins tables to display keyword values, but I'm not sure how to handle a field with multiple keywords (looking at the format of the result, as shown below).
View table
Column1 | Column2 | Column3
val1 | val2 | val3; val4
Do I need some function to accomplish this or is there another way?