Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Error Incorrect Syntax Near

$
0
0

Hi

SELECT A.[Location], Case @Month When <=3 Then (Select Sum([Amount])

      FROM      Test      WHERE    [Date] >= Convert(varchar,@Year-1 + '/04/01',111))End AS [YTD]

FROM Test  AS A

Thanks


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>