Created
April 26, 2021 19:42
-
-
Save nutjob4life/1d771f883ce9e98ed555bf4855e3f971 to your computer and use it in GitHub Desktop.
Maureen's Query
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 | |
biomarkers.id AS 'BM ID', | |
biomarker_names.name AS 'BM Name', | |
organs.name AS 'Organ', | |
organ_data.phase AS 'Organ phase', | |
studies.FHCRC_ID AS 'Protocol ID', | |
studies.title AS 'Protocol', | |
study_data.phase AS 'Protocol phase' | |
FROM | |
biomarker_names, | |
biomarkers, | |
organ_data, | |
organs, | |
studies, | |
study_data | |
WHERE | |
biomarker_names.biomarker_id = biomarkers.id | |
AND `isPrimary` | |
AND | |
organ_data.biomarker_id = biomarkers.id | |
AND | |
organ_data.organ_id = organs.id | |
AND | |
study_data.organ_data_id = organ_data.id | |
AND | |
study_data.study_id = studies.id | |
ORDER BY | |
biomarkers.id, | |
organs.name, | |
studies.title | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment