I have a table called "attributes" which i need to be columns in our query. These columns need to then join our "products" table and be populated with the data from "productattributevalues".
Table: Attributes
Fields:
- id
- name
Table: Products
Fields
- id
- name
- description
- other fields which contain more information about the product
Table: ProductAttributeValues
Fields:
- id
- attribute id
- product id
- value
How can I get the rows from attributes to be columns alongside the products and have them populated with the values from productattribute values and have unique results.