Buon giorno, ho questo problema.
In una select devo eseguire non solo delle somme.
Per il momento ho fatto cosi ma devo unirle e non so come fare:
Questa discriminante (Q_A = '204' and F_A = '1' and S_A = 'a') è uguale per tutti, l'unica che varia è nel Prefisso..codice://select 1 SELECT SUM(Quantita_unita_A) as Q_Unita_A, from TB_A where Prefisso_A IN ('1','2','3','4','5') and Q_A = '204' and F_A = '1' and S_A = 'a' //select 2 SELECT SUM(Quantita_unita_B) as Q_Unita_B, from TB_A where Prefisso_A IN ('6','7') and Q_A = '204' and F_A = '1' and S_A = 'a' //select 3 SELECT SUM(Quantita_unita_C) as Q_Unita_C, from TB_A where Q_A = '204' and F_A = '1' and S_A = 'a'
In pratica dovrei unire le tre Select ed ottenere un solo record con le relative somme..
Come faccio?
Grazie mille

Rispondi quotando