Author: Arun Raj
Posted: Tue Feb 14, 2017 11:58 pm (GMT 5.5)
dibyendumandal11111,
Welcome to the forums.
If these tables have large amount of data, you might not want to repeat JOINing A,B, and C in your query.
How about trying to INNER JOIN A,B, and C , LEFT JOIN with D, then work with the result set on an outer query to find Sum1 and Sum2.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard
Posted: Tue Feb 14, 2017 11:58 pm (GMT 5.5)
dibyendumandal11111,
Welcome to the forums.
If these tables have large amount of data, you might not want to repeat JOINing A,B, and C in your query.
How about trying to INNER JOIN A,B, and C , LEFT JOIN with D, then work with the result set on an outer query to find Sum1 and Sum2.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard