Tools table:
id tool_nr
687 2902
745 2456
234 3245
Product Table:
id tool_id something
3432 687 123456
4587 745 254786
4411 687 258956
4741 234 874455
8745 745 987445
So, tools table id equals product table tool_id.
What I would like:
tool_nr something
2902 123456
2456 254786
2902 258956
3245 874455
2456 987445
As you can see tools table id may have multiple values in the product table, right know my query is giving me "something" values together separated with commas, but I need to change it and I would like to know what would be the best way to do it?