Hi alhamd,
Refer
SELECT
(
ISNULL((select Sum(TotalPrice) from tblDispatchLocal),0) + ISNULL((select Sum(P_Price) from tblSalesTran),0) + ISNULL((select Sum(R_Amount) from tblLoanRefund),0))
-
(SELECT
(
ISNULL((select Sum(Price) from tblConsumption),0) + ISNULL((select Sum(Rate * Qty) from tblConsumptionMedicine),0)
+
ISNULL((select Sum(Cost) from tblBreading),0) + ISNULL((select Sum(Price * Quantity) from tblTreatment ) + (select Sum(P_Price) from tblPurchaseTran where P_Head='Expenditure'),0)
+
ISNULL((select Sum(Paid_Amount) from tblSalaryGenerate),0) + ISNULL((select Sum(L_Amount) from tblLoan ) + (select sum(P_Amount)from tblExpenditure where Code in ('1','2','3','4')),0)
+
ISNULL((select sum(P_Amount) from tblExpenditure where Code not in ('1','2','3','4') ),0)
)
) ' Profit & Loss';