MySQL Forums
Forum List  »  Italian

Re: Help Query avanzata
Posted by: Gavin Towey
Date: March 02, 2010 03:25PM

Prova questo:

SELECT prodotto_id
FROM proprieta_prodotto
GROUP BY prodotto_id
HAVING SUM(IF(Nome_proprieta='PROP1',Valore_proprieta='Valore_X',0))
AND SUM(IF(Nome_proprieta='PROP2',Valore_proprieta='Valore_B',0))
AND SUM(IF(Nome_proprieta='PROP3',Valore_proprieta='Valore_K',0))

Ciao,
Gavin Towey

Options: ReplyQuote


Subject
Views
Written By
Posted
3737
March 02, 2010 03:30AM
Re: Help Query avanzata
2015
March 02, 2010 03:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.