任何人都可以帮助我为什么这个查询在SSMS中工作正常但在SSRS中没有?
SELECT
SUM(AMOUNTMST) AS 'Balance'
FROM
BANKACCOUNTTRANS
WHERE
(ACCOUNTID IN (@Bank_AccountID))
AND (DATAAREAID = 'RAS')
AND (TRANSDATE BETWEEN '2013-12-31 00:00:00' AND @From_Date)
GROUP BY
AccountID
答案 0 :(得分:0)
SELECT AccountID
,SUM(AMOUNTMST) AS [Balance]
FROM BANKACCOUNTTRANS
WHERE (ACCOUNTID IN (@Bank_AccountID))
AND (DATAAREAID = 'RAS')
AND (TRANSDATE BETWEEN '20131231' AND @From_Date)
Group By AccountID