I want to make complex SELECT statement but I'm not sure how to do it
I can write it human speaking language so
I want to select all product_id and its corresponding brand_name
Tables are these
1) Brands (links brand id to brand name) Contains lines with brand_id and corresponding brand_name
2) Field_brand (links entity to brand id. entity is a product in shop, each entity belongs to one brand. product can contain one or more product variants (see next table)) Contains lines with entity_id and corresponding brand_id
3) Field_products (links product with its variants, i.e. several product_id's can have one entity_id) Contains lines with product_id and corresponding entity_id