saurabh18cs
Honored Contributor III

try this 

SELECT
  cluster_id,
 MAX(max_autoscale_workers) AS max_workers,
  DATE_TRUNC('day', change_time) AS day
FROM
    system.compute.clusters
WHERE
  change_time BETWEEN '2023-01-01' AND '2023-01-31'
GROUP BY
  cluster_id,
  DATE_TRUNC('day', change_time)
ORDER BY
  day;