Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

sum of amout for the date falling in the respective month i.e months wise sum amount is required - response (9) by Kawish_Siddiqui

$
0
0

Peiter,
Are you looking for something similar to following?

Select cast((order_date(FORMAT 'MM-YYYY')) as char(7)) as Cal_Month, Sum(OPP.Expected_Amount)
From Opportunity OPP
Inner Join Sales SL
On OPP.Opportunity_ID = SL.Opportunity_ID
Group by 1

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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