Visa ett inlägg
Oläst 2013-08-14, 14:14 #4
Johnny Viking Johnny Viking är inte uppkopplad
Medlem
 
Reg.datum: Aug 2011
Inlägg: 273
Johnny Viking Johnny Viking är inte uppkopplad
Medlem
 
Reg.datum: Aug 2011
Inlägg: 273
Jag missförstod dig lite. Men tror följande blir rätt.

Kod:
SELECT * FROM products P 
LEFT JOIN product_properties PP ON PP.product_id = P.ID 
LEFT JOIN property_values PV ON PV.ID = PP.property_ID 
WHERE PV.ID IN(1,6)
Detta hämtar endast matchande röd (1) och crossover (6).
Johnny Viking är inte uppkopplad   Svara med citatSvara med citat