Your question is Patient Gender Percentage Query. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Exusia Clinical Data Hub needs a basic demographic quality metric for its registered patient population. Write a PostgreSQL query that calculates the percentage of all registered patients whose recorded gender is M.
NULL gender.40.00 for 40 percent.| Column | Type | Description |
|---|---|---|
| patient_idPK | INTEGER | Unique registered patient identifier |
| patient_name | VARCHAR(100) | Patient display name |
| Column | Type | Description |
|---|---|---|
| demographic_idPK | INTEGER | Unique demographics record identifier |
| patient_id | INTEGER | Referenced patient identifier |
| gender | VARCHAR(20) | Recorded gender value |