i have to tables in one table i have items names and each item's Id.
in the other table i have customers names and in the 'order'(text) field i have
id numbers seperated witn comma ','
for example:
table_itmes:
item id
bag 1
watch 2
phone 3
mouse 5
glass 18
table_orders:
cutomer order
john 3,18
math 2,5,18
dan 1,3
zoi 2,5
I need to print
john phone,glass
math watch,mouse,glass
dan bag,phone
zoi watch,phone
What Query i better use?
(mysql)
Start Free Trial