Quantcast
Viewing all articles
Browse latest Browse all 1418

Select Statement

Hi

  I have parameter Month & Year . I have written sql like this

Select Location , (Select Sum(Amount) from Temp where Month(Date) = @month and Year(date) = &year) as MTD

from Temp A

Now i want YTD value how we can get it.

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>