How can I find out Year to Date of Quantiy and SalesTotal in SQL for current year and 2013? I am a sample below .
It should returns like
YTD, YTD of 2013, YTD 2014 VS YTD 2013
Data sample
Sales & quantity for 2013
Month Quantity Sales
Jan 5 $100
Feb 20 $2000
Mar 15 $1500
etc...
Sales & quantity for 2014
Month Quantity Sales
Jan 10 $200
Feb 20 $400
Mar 30 $600
etc... up to today's date (Nov 13, 2014)