I need help with this Mysql query
Select id, code, Tbldetail from TblProd
The result is:
id code detail (i Need ADD Model Column Here)
100 432320-1 Keyboard
101 432325-1 Mouse
102 432329-1 Printer
I have another table with this structure:
id code model
1 432320-1 rx1
2 432320-1 rx2
3 432320-1 rx3
4 432325-1 rx1
5 432329-1 rx2
6 432329-1 rx1
I need an output like this:
id code detail Model
100 432320-1 Keyboard rx1,rx2,rx3
101 432325-1 Mouse rx1
102 432329-1 Printer rx2,rx1
How can I perform this?