Skip to content

Instantly share code, notes, and snippets.

@Mistobaan
Last active Jun 23, 2020
Embed
What would you like to do?
DECLARE SAMPLE_SIZE INT64 DEFAULT 5;
SELECT *
FROM
BREATHE.ncbi_xml
WHERE
RAND() < SAMPLE_SIZE/(SELECT COUNT(*) FROM `BREATHE.ncbi_xml`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment