Query annidata
Ciao a tutti,
non riesco a creare una select.
Ho tre tabelle cosi strutturate:
codice:
T_OGGETTO
id
descrizione
T_CARATTERISTICA
id
descrizione
T_OGGETTO_CARATTERISTICA
caratteristica_id
oggetto_id
valore
ES:
T_OGGETTO
1 oggetto1
2 oggetto2
T_CARATTERISTICA
1 car1
2 car2
3 car3
T_OGGETTO_CARATTERISTICA
1 1 'Rosso'
2 1 'Bianco'
1 2 'Verde'
3 2 'Blue'
Quindi l'oggetto1 ha caratteristica 1 di valore 'Rosso',caratteristica 2 di valore 'Bianco' e l'oggetto2 ha caratteristica 1 di valore 'Verde' e caratteristica 3 d valore 'Blue'
Vorrei fare una select che mi restituisca tutti gli oggetti che hanno caratteristica 1 = 'Rosso' e caratteristica 2 = 'Bianco' (dovrebbe restituirmi solo l'oggetto 1).
Non riesco a creare questa select.
Potete darmi una mano?
Grazie mille
Subject
Views
Written By
Posted
Query annidata
3522
July 29, 2010 07:52AM
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.