devi usare una subquery
qualcosa di questo tipo
SELECT * FROM fatture WHERE cliente = xxx and exists (select sum(importi) as totale from fatture where cliente = xxx having totale between x and y)
l'ho scritta molto al volo, non garantisco![]()
devi usare una subquery
qualcosa di questo tipo
SELECT * FROM fatture WHERE cliente = xxx and exists (select sum(importi) as totale from fatture where cliente = xxx having totale between x and y)
l'ho scritta molto al volo, non garantisco![]()