Skip to content

Instantly share code, notes, and snippets.

@aczietlow
Last active September 20, 2017 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aczietlow/7dd95eaf8f0840335bf8eedef6b13499 to your computer and use it in GitHub Desktop.
Save aczietlow/7dd95eaf8f0840335bf8eedef6b13499 to your computer and use it in GitHub Desktop.
SELECT
entity_id,
count(*) AS domain_count
FROM (SELECT DISTINCT
entity_id,
domain_c2345c960dca7259cf7ca40b6_domain_id
FROM field_data_domain_c2345c960dca7259cf7ca40b6
ORDER BY entity_id) SJ
GROUP BY entity_id
HAVING domain_count = 14;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment