This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH const AS ( | |
SELECT TIMESTAMP '2015-01-01' AS start_date | |
) | |
, saves_with_collab AS ( | |
SELECT DISTINCT user_id, collab | |
FROM metrics.save_stat, const | |
WHERE server_datetime > const.start_date | |
) | |
, collab_users AS ( | |
SELECT DISTINCT user_id |