Extracting 90 days sql query
Extracted method sql
Unified sql query