In MYSql 5.7 (i can't use PHP or similar language or other MySQL version) i have two table:
Operators and OperatorsWork
In the first table i have the ID and the name
In the second table i have a string with pipeline separeted IDs
Here you can find a DB Fiddle for test: https://www.db-fiddle.com/f/iTYVLJQgaNEs92rMQKgybP/1
Pratically i need to take the IDOperators column and match with name column
The expected result is comma separated values in this way:
1 - Name1, Name2, Name3
2 - Name2, Name3
3 - Name1, Name3
The original IDOperators was:
1 - 1|2|3
2 - 2|3
3 - 1|3
Many thanks