I have 5 table in database as shown in image below link
The join is like this:
tableA----->tableB------>tableC---------->tableD----->table
see image for fields [NAME fields in image is Amount and is in nvarchar(max) ]
Now I want to apply optimized queries to save response time like
1-sum (amount) of all db by making join of A TO B B TO C TO D 2-simlarly agreagate function in where clause 3-calculations any 4-count
I prefer a solution without INNER JOIN
since it takes more response time and it fails if any 1 join fails.
in most cases failure in relation of A---B does not give record of C ETC