I have the following problem and will ask a question in a didactic way so that it can be useful to all the users that may need it. I want to make a SQL query that meets all the requirements and returns the values.
The tbl_cor
in this case is to register the product with all its color possibilities. This will be done in another form where a drop will return all the products for the choice of one of them and later register of the possible colors.
tbl_produto
id_prod
nome_prod
preco_prod
cat_prod <----- id da categoria
datacad_prod
tbl_categoria
id_cat
nome_cat
tbl_cor
id_prod
cor_prod <----- string de um dropdown do form
Example:
% w / w Kombe of produto
utility available in categoria
green, blue, white, yellow . How to return through a SQL query this data?