Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created October 22, 2021 07:06
Show Gist options
  • Save minodisk/769d70f75998d6004a634dcbb7cce8b4 to your computer and use it in GitHub Desktop.
Save minodisk/769d70f75998d6004a634dcbb7cce8b4 to your computer and use it in GitHub Desktop.
with
items as (
select 1 as id, ['dog'] as tags
union all select 2 as id, ['cat'] as tags
union all select 3 as id, ['bird'] as tags
union all select 4 as id, ['dog', 'cat'] as tags
union all select 5 as id, ['cat', 'bird'] as tags
union all select 6 as id, ['bird', 'dog'] as tags
union all select 7 as id, ['dog', 'cat', 'bird'] as tags
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment