Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Privious year sales in T-SQL

$
0
0

Hi all,

i have a trandate and tranvalue,customer,product now i need to poulate a table withtrandate,tranvalue(sales amount),customer,product,py_tranvalue  and i need to populate cy_WTD,cy_MTD,CY_YTD and py_WTD,PY_MTD,PY_YTD in sql server 2008 r2 usnig t-sql.

Can any one pls help.

Thanks & Regards,

Mahesh Babu k


Viewing all articles
Browse latest Browse all 5123

Trending Articles



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