Query Run
SET @rank=0; SET @start_date = '20240713000000'; SET @end_date =... 4 months ago
SET @rank=0; SET @start_date = '20221201000000'; SET @end_date =... 4 months ago