I have two tables:
Table 1:
id | color | qty
---|-------|-----
1  | red   | 10
2  | green | 20
3  | blue  | 50
Table 2:
id | shade  
---|-------
1  | light
1  | dark   
2  | light
3  | light
3  | dark 
How can I write a query that joins the two tables and returns the shades as a comma delimited string i.e.
1 | red   | light, dark | 10
2 | green | light       | 20
3 | blue  | light, dark | 50
 
     
    