Created
May 28, 2024 03:57
-
-
Save lfy79001/e62c34ace839fa64e18e5c081b40a96c to your computer and use it in GitHub Desktop.
This file contains 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 | |
file.project_short_name, | |
file.data_category, | |
file.data_type, | |
file.data_format, | |
COUNT(file.file_gdc_id) as n | |
FROM | |
`isb-cgc-bq.GDC_case_file_metadata.fileData_active_current` AS file | |
WHERE | |
associated_entities__case_gdc_id IN ('{case_ids}') | |
GROUP BY | |
file.project_short_name, | |
file.data_category, | |
file.data_type, | |
file.data_format | |
ORDER BY file.data_type, n DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment