Please help! I have the query below. The output is as follows: ProcessDate--------------AccountNumber--------------CloseDate-----------Mem_years--------------credit_loan----chk_acct 20180208-----------------------323314------------------------NULL--------------------23------------------------500------------------X 20180208-----------------------323314------------------------NULL--------------------23-----------------------NULL----------------X
Including the case statement for the "Actual Sales" column would ensure you get the sales for the first 5 months. Currently the "ActualSales" for the rest of the months is...