SQL查询和SSRS查询

时间:2015-02-05 16:23:05

标签: sql-server ssrs-2008

任何人都可以帮助我为什么这个查询在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

1 个答案:

答案 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