Premetto che id sia la chiave unica della tabella.
select * from tabella where tipologia_fattura = '1' and id not in (select fattura_id from tabella where tipologia_fattura = '0')
Premetto che id sia la chiave unica della tabella.
select * from tabella where tipologia_fattura = '1' and id not in (select fattura_id from tabella where tipologia_fattura = '0')
Ridatemi i miei 1000 posts persi !!!!
Non serve a nulla ottimizzare qualcosa che non funziona.
Cerco il manuale dell'Olivetti LOGOS 80B - www.emmella.fr