| | 170 | |
| | 171 | Any one of a number of related primary or secondary diagnoses, aged under 65. |
| | 172 | |
| | 173 | SELECT count(distinct participant.id) as 'Number of Participants' |
| | 174 | FROM participant, questionnaire_participant, question_answer, category_answer |
| | 175 | WHERE participant.id = questionnaire_participant.participant_id |
| | 176 | AND birth_date > '1947-03-01' |
| | 177 | AND question_answer.questionnaire_participant_id = questionnaire_participant.id |
| | 178 | AND ( question_answer.question_name = 'epi_pridiag' OR question_answer.question_name = 'epi_secdiag' ) |
| | 179 | AND category_answer.question_answer_id = question_answer.id |
| | 180 | AND ( category_answer.category_name = 'Troponin_pos_ACS' |
| | 181 | OR category_answer.category_name = 'Troponin_neg_ACS' |
| | 182 | OR category_answer.category_name = 'STEMI' |
| | 183 | OR category_answer.category_name = 'Stable_Angina' |
| | 184 | OR category_answer.category_name = 'Stable_CAD' |
| | 185 | OR category_answer.category_name = 'Ischaemic_Cardiomyopathy' |
| | 186 | OR category_answer.category_name = 'Acute_Stent_Thrombosis' ) |
| | 187 | ; |