Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

MTD,YTD,PTD without calendar table

$
0
0
          QTY      Month      YearQTY_YTDQTY_MTDQTY_PTD
1012010   
2022010   
2012012   
3032012   

Above is how my table looks like and  all are having integer datatypes

I dont have a calendar table to join hence without calendar table can I compute YTD,MTD,PTD?

If so what will be the case queries



Mudassar


Viewing all articles
Browse latest Browse all 23857

Trending Articles