Skip to content

Instantly share code, notes, and snippets.

@qoobaa
Last active August 29, 2015 13: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 qoobaa/9504809 to your computer and use it in GitHub Desktop.
Save qoobaa/9504809 to your computer and use it in GitHub Desktop.
USE "https://raw.github.com/cowbell/yql-tables/master/nbp/nbp.dir.xml";
USE "https://raw.github.com/cowbell/yql-tables/master/nbp/nbp.tables.xml";
SELECT * FROM nbp.tables WHERE id IN
(SELECT id FROM nbp.dir WHERE typ = 'A' AND data_publikacji < '2014-03-01'
| SORT(field='data_publikacji')
| TAIL(count=1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment