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