Changes between Version 2 and Version 3 of OnyxDatabaseReporting


Ignore:
Timestamp:
06/21/11 16:19:18 (13 years ago)
Author:
Nick Holden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OnyxDatabaseReporting

    v2 v3  
    7777        GROUP BY category_name, barcode WITH ROLLUP;
    7878
     79From the command line, to query for gender and birth date for specific diagnosis, into an outfile:#
     80
     81mysql -h briccsdb -u auditor -p briccs -e "
     82SELECT category_name, birth_date, gender
     83FROM participant, questionnaire_participant, question_answer, category_answer
     84WHERE participant.id = questionnaire_participant.participant_id
     85AND question_answer.questionnaire_participant_id = questionnaire_participant.id
     86AND question_answer.question_name = 'epi_pridiag'
     87AND category_answer.question_answer_id = question_answer.id
     88AND ( category_answer.category_name LIKE '%ACS%' OR category_answer.category_name = 'STEMI' OR category_answer.category_name = 'Stable Angina' )
     89;
     90" > mysql-output.txt