Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Data Mapping in DB

Hello,

I have 2 tables. 

 

For 1st table (Table name: ORIGINAL),

opportunity #AmountDate
1

124

01/18/19
26502/22/19
364604/04/19
4644909/08/19
549409/12/20
66412/12/19
76506/18/19
89907/30/20
9879805/05/20
1051602/12/20
119912/25/22
   
   
   

 

 

For 2nd table (table name: TARGET),

Dateamount
01/01/192461264
04/01/196566
07/01/1961199
10/01/19263126

 

 

Expected Result:

Quarter/

Year

Amount from ORIGINALAmount from TARGET
2019 Q1sum of amounts fall in this quarter2461264
2019 Q2As above6566
2019 Q3As Above61199
2019 Q4As Above263126

 

 

I have tried sevaral times to connect two tables with 'Date' but not getting results in quarter. I will really appreciate for any help on thi. Thanks in advance!

 

3 Replies