【发布时间】:2014-03-31 12:05:37
【问题描述】:
以下子查询返回一些空值和一些值。我想选择不为空的行,我该怎么做?
,(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'
谢谢
【问题讨论】: