Skip to content

Instantly share code, notes, and snippets.

@Krassmus
Created May 30, 2017 09:29
Show Gist options
  • Save Krassmus/7258cfec9356cf30a3648fd4a3050f1b to your computer and use it in GitHub Desktop.
Save Krassmus/7258cfec9356cf30a3648fd4a3050f1b to your computer and use it in GitHub Desktop.
SELECT DISTINCT termine.range_id
FROM themen_termine
LEFT JOIN themen ON (themen.issue_id = themen_termine.issue_id)
INNER JOIN termine ON (themen_termine.termin_id = termine.termin_id)
WHERE themen.issue_id IS NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment