0
I have 3 tables: (http://sqlfiddle.com/#! 9/08b79f)
tb_attributes, tb_atr_to_prod, tb_atr_to_cat.
Table TB_ATRIBUTOS has all parent and child attributes. The TB_ATR_TO_PROD Table has all attributes with their respective products. Table TB_ATR_TO_CAT has the category code that represents a certain group of attributes. I need to create a list of all the attributes of a certain category, similar to this:
<h3>Cor</h3>
<ul>
<li>Verde</li>
<li>Azul</li>
<li>Preto</li>
</ul>
<h3>Cone</h3>
<ul>
<li>2.500M</li>
<li>3.000M</li>
<li>1.000M</li>
</ul>
Dude, it worked out! Only that I needed to return the groups that contain products (tb_atr_to_prod) and also return the groups of a certain category (tb_atr_to_cat). But beauty, I will try to implement here! Thank you very much!!!
– Felipe
That’s a good friend. If you can’t implement update the sqlfiddle then I’ll take a look at you! See you later!
– Emerson JS
Emerson, sqlfiddle is up to date :)
– Felipe
Felipe, select updated, check.
– Emerson JS