Created
March 9, 2017 19:13
-
-
Save jthandy/875bbd9c5a1982ae666ceef8f23019f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
select | |
md5( | |
coalesce(date_day::varchar, '') || | |
coalesce(destination_url, '') || | |
coalesce(utm_medium, '') || | |
coalesce(utm_source, '') || | |
coalesce(utm_campaign, '') || | |
coalesce(utm_term, '') || | |
coalesce(utm_content, '') || | |
coalesce(ad_group_id::varchar, '') || | |
coalesce(keyword_id::varchar, '') | |
) as id, | |
* | |
from unioned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment