Hi, here is my query :
select pc1.colorid, pcol1 = color1, pcol2 = color2 from productcolors pc1 join colorcombo CB on (CB.id = pc1.colorid) where pc1.prodid = '8'
Here are my results :
colorid pcol1 pcol2
1 1 28
2 2 28
21 1 10
28 4 10
19 10 28
33 2 23
37 15 11
33 2 23
What I would like to do is use the table COLORCANVASS to reference colorname to pcol1 and pcol2 via id
id colorname
1 black
2 maroon
3 cherise
4 red
5 tomato red
6 blue
7 teal
8 brown
9 tan
10 white
11 yellow
12 orange
13 purple
14 b/green
15 jade
16 turquoise
17 royal blue
18 navy
19 light grey
20 beige
21 cream
22 bp green
23 sanlam
24 olive
25 apple green
26 caltex
27 light navy
28 nothing
any ideas?
Regards
Shaun
select pc1.colorid, pcol1 = color1, pcol2 = color2 from productcolors pc1 join colorcombo CB on (CB.id = pc1.colorid) where pc1.prodid = '8'
Here are my results :
colorid pcol1 pcol2
1 1 28
2 2 28
21 1 10
28 4 10
19 10 28
33 2 23
37 15 11
33 2 23
What I would like to do is use the table COLORCANVASS to reference colorname to pcol1 and pcol2 via id
id colorname
1 black
2 maroon
3 cherise
4 red
5 tomato red
6 blue
7 teal
8 brown
9 tan
10 white
11 yellow
12 orange
13 purple
14 b/green
15 jade
16 turquoise
17 royal blue
18 navy
19 light grey
20 beige
21 cream
22 bp green
23 sanlam
24 olive
25 apple green
26 caltex
27 light navy
28 nothing
any ideas?
Regards
Shaun