You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the field itself - date - to the results and grouping by it as well SELECT WEEK(CAST(date AS DATE)), date FROM calcs GROUP BY 1, 2 gives correct results:
SELECT WEEK(CAST(date AS DATE)) FROM test GROUP BY 1
results inAdding the field itself -
date
- to the results and grouping by it as wellSELECT WEEK(CAST(date AS DATE)), date FROM calcs GROUP BY 1, 2
gives correct results:Moreover, the translated query for
SELECT WEEK(CAST(date AS DATE)) FROM test GROUP BY 1
is incorrect:The text was updated successfully, but these errors were encountered: