Ich würde die Syntax ändern und den Sub-Select nicht bei den SELECT-Feldern sondern entweder in der FROM-Anweisung oder als Common Table Expression hinterlegen. Beides ist m.E. leichter zu verstehen und lesen:
1. Sub-Select in der FROM-Anweisung:
Code:
Select a.abc, ... , Summe
From DateiA a Join (Select Key1B, Key2B, ... Sum(Feld) Summe
                       From DateiB b
                       Where ....
                       Group By Key1, Key2, ...) x 
     on a.Key1 = x.Key1 and a.Key2 = x.Key2 ...
Where ...
2. Common Table Expression
Code:
With x as (Select Key1, Key2, ... Sum(Feld) Summe
              From DateiB
              Where ...
              Group By Key1, Key2, ....)
Select ABC, .... , Summe
   From DateiA a join x 
        on a.Key1 = x.Key1, a.Key2 = x.Key2 ...
   Where ...
Birgitta