-2
以下子查詢正在返回一些空值和一些值。我想選擇不爲空的行,我會如何做到這一點?在查詢中過濾出空值
,(select distinct LEDGERTABLE.ACCOUNTNAME
FROM ledgertrans
Where Salesline.SalesID = #tempCMs.SALESID and salesline.DIMENSION =
(Select top 1 Ledgertrans.Dimension
From LedgerTrans
Where Ledgertrans.Voucher = #tempCms.InvoiceID and LedgerTrans.AccountNum = Ledgertable.Accountnum)
) As 'Account'
由於