I need to select all merchants via the merchant-id that have process for 12 consecutive months. Processing means that we have received payments via the merchant 's credit card. The processing information is held in the processing date column and is reported in days not months.
I am not sure how to group the info in that column by month then retrieve all merchants that have had 12 consecutive months processing. Below is the data. you will see that the first merchant has 3 consecutive months of processing. The second merchant misses a month. any help would be appreciated
I have written the code to get me to the data below. If possible, I need code to tell me if a merchant has processed for a minimum of 12 consecutive months
Merchant_id Processing date
876yu 03/05/2005
876yu 03/07/2005
876yu 04/05/2005
876yu 04/06/2005
876yu 05/07/2005
7645h 08/02/2005
7645h 08/03/2005
7645h 08/04/2005
7645h 10/06/2005
7645h 11/06/2005
I am not sure how to group the info in that column by month then retrieve all merchants that have had 12 consecutive months processing. Below is the data. you will see that the first merchant has 3 consecutive months of processing. The second merchant misses a month. any help would be appreciated
I have written the code to get me to the data below. If possible, I need code to tell me if a merchant has processed for a minimum of 12 consecutive months
Merchant_id Processing date
876yu 03/05/2005
876yu 03/07/2005
876yu 04/05/2005
876yu 04/06/2005
876yu 05/07/2005
7645h 08/02/2005
7645h 08/03/2005
7645h 08/04/2005
7645h 10/06/2005
7645h 11/06/2005