95

Diagnosis Frequency

HardCOUNTsubquerypercentage

Problem Description

Write a SQL query to find the most common diagnosis and its frequency.

Expected Columns

  • diagnosis
  • frequency
  • percentage

Example Output

| diagnosis | frequency | percentage | |-----------|-----------|------------| | Hypertension | 1 | 9.09 | | Follow-up | 1 | 9.09 | | ... | ... | ... |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#95 Diagnosis Frequency
Hard

Loading schema...

Loading editor...

No results yet

Run a query to see results