Hi all,
I have a SQL query with all left joins. However, the left most table tClient wasn't displayed if it gets null from the right table.
The linking is something like tClient --> tPOin --> tPOItems --> tDelivered
The query is exactly like this:
The result is, for example:
Company A, $68012
Company C, $133000
However, I'd like to have Company B displayed but it doesn't.
Can someone please help me.
Thanks in advance.
I have a SQL query with all left joins. However, the left most table tClient wasn't displayed if it gets null from the right table.
The linking is something like tClient --> tPOin --> tPOItems --> tDelivered
The query is exactly like this:
Code:
SELECT EName, Sum(tPOItems.Charge*tDelivered.DQuantity) AS Amount FROM tClient left JOIN (tPOin left JOIN (tPOItems left JOIN tDelivered ON tPOItems.ID=tDelivered.POItemsID) ON tPOin.ID=tPOItems.POinID) ON tPOin.ClientID=tClient.ID WHERE InvoiceID Is Not Null And CalcMonth=Forms!fGenMonthlyStatement.bCalcMonth And CalcYear=Forms!fGenMonthlyStatement.bCalcYear GROUP BY tClient.EName;
Company A, $68012
Company C, $133000
However, I'd like to have Company B displayed but it doesn't.
Can someone please help me.
Thanks in advance.
Comment