以下のクエリがあります。別のテーブルに左結合しようとしています。クエリが値を返す必要があることはわかっていますが、値は null として返されます。誰かが私が間違っていることを見ていますか? この時点で私の脳は揚げられています。
SELECT
ss.NDC,
ss.ShipToAddressNo,
ss.QuantityShipped,
c.AccrualType,
ss.ExtendedPrice ExtendedPrice,
c.AccrualAmount CBAccrualAmount
FROM
SalesSummary ss left join ChargebackAccruals c on
ss.ClassOfTrade = c.TradeClass and
c.AddressNo is null and
c.ShipTo is null and
c.ShortItemNo is null and
c.LotNumber is null and
ss.InvoiceDate = @RunDate and
ss.InvoiceDate between AccrualBeginDate and AccrualEndDate