I have 2 tables like this:
Table A:
| Code | Values |
|---|---|
| 001 | A:B:C |
| 002 | A:B:D |
Table B:
| Character | Description |
|---|---|
| A | Ai |
| B | Bi |
| C | Ci |
| D | Di |
I want to add a column Details in table A with descriptions from table B with the same format as Values column like this:
| Code | Values | Details |
|---|---|---|
| 001 | A:B:C | Ai:Bi:Ci |
| 002 | A:B:D | Ai:Bi:Di |
I tried to join 2 tables but got stuck how to display values in Details column. Could any one help an idea for a query?