Changes between Version 9 and Version 10 of OnyxDatabaseReporting


Ignore:
Timestamp:
03/07/12 10:14:30 (13 years ago)
Author:
Nick Holden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OnyxDatabaseReporting

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