sql server - Optimized sql query for 5 parent and child table with relation?how -
i have 5 table in database shown in image below link
the join this:
tablea----->tableb------>tablec---------->tabled----->table
see image fields [name fields in image amount , in nvarchar(max) ]
now want apply optimized queries save response time like
1-sum (amount) of db making join of b b c d 2-simlarly agreagate function in clause 3-calculations 4-count
i prefer solution without inner join
since takes more response time , fails if 1 join fails.
in cases failure in relation of a---b not give record of c etc
Comments
Post a Comment