Assuming there is some sensible way to join the tables, something like this should work:
<pre>
SELECT SUM (T1.col1 + T1.col2 + T1.col3
+ T2.col1 + T2.col2 + T3.col1 + T3.col2
+ T3.col3 + T3.col4 + T3.col5) AS TOTAL
FROM TABLE_1 T1,
TABLE_2 T2
TABLE_3 T3
WHERE …
</pre>
I would be remiss if I did not point out that your tables seem to violate first normal form. The rule I refer to is “remove repeating columns.”
Discuss This Question: 3  Replies