Changes between Version 7 and Version 8 of OnyxDatabaseReporting
- Timestamp:
- 01/18/12 12:51:36 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OnyxDatabaseReporting
v7 v8 118 118 ; 119 119 120 Using UNION to produce a list of S numbers and DOBs for participants who are either study specific recruits or have a specific primary or secondary diagnosis :120 Using UNION to produce a list of S numbers and DOBs for participants who are either study specific recruits or have a specific primary or secondary diagnosis (UNION combines two SELECTs with duplicates removed): 121 121 122 122 mysql -h briccsdb -u auditor -p briccs -e " 123 SELECT barcodeas 'Participant', birth_date as 'DOB'123 SELECT enrollment_id as 'Participant', birth_date as 'DOB' 124 124 FROM participant, questionnaire_participant, question_answer, category_answer 125 125 WHERE participant.id = questionnaire_participant.participant_id … … 129 129 AND category_answer.category_name = 'Aortic_Stenosis' 130 130 UNION 131 SELECT barcodeas 'Participant', birth_date as 'DOB'131 SELECT enrollment_id as 'Participant', birth_date as 'DOB' 132 132 FROM participant, questionnaire_participant, question_answer, category_answer 133 133 WHERE participant.id = questionnaire_participant.participant_id