Created
May 8, 2017 17:14
-
-
Save timrobertson100/060925c1a6db8bbc7dd64dbd095f1d71 to your computer and use it in GitHub Desktop.
publisherKey and datasetKey
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 | |
| p.key as publisherKey, p.title, d.key as datasetKey, d.title, replace(replace(e.url, 'http://registry.als.scot/GBIF/', ''), '.zip', '') as guid | |
| from | |
| dataset d JOIN | |
| dataset_endpoint de ON d.key=de.dataset_key JOIN | |
| endpoint e ON e.key=de.endpoint_key JOIN | |
| organization p ON d.publishing_organization_key = p.key | |
| where | |
| e.url like 'http://registry.als.scot/GBIF/%' | |
| order by p.title, d.title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment