Files
doris/regression-test/suites/variant_github_events_p2/sql/whatIsTheBestDayOfTheWeekToCatchAStar.sql
2024-12-12 12:16:04 +08:00

2 lines
169 B
SQL

SELECT dayofweek(cast(v["created_at"] as datetime)) AS day, count() AS stars FROM github_events WHERE cast(v["type"] as string) = 'WatchEvent' GROUP BY day ORDER BY day