Need last four months data:
select count(distinct session_id) from master_gui partition for (to_date(\'11-25-2020\',\'MM-DD-YYYY\')) where session_id in (