Provider Analytics Path · Mission 10 of 30Easy

Provider roster with red flags

Use JOIN with multiple WHERE conditions and OR logic

Back to Provider Analytics

The Brief

Dr. Linda NguyenChief Medical Officerslack-dm

I need to audit our provider roster. Pull every provider with their name, specialty, department name, hire date, and active status. Flag anyone who's inactive OR has a hire date after today — those are credentialing issues I need to resolve before the CMS review.

You'll practice

JOINWHEREOR logic

Tables & columns available

dim_providersdim7 columns
ColumnTypeKey
provider_idINTPK
first_nameTEXT
last_nameTEXT
specialtyTEXT
department_idINTFK → dim_departments
hire_dateTEXT
is_activeINT
dim_departmentsdim6 columns
ColumnTypeKey
department_idINTPK
department_nameTEXT
department_typeTEXT
floorINT
bed_countINT
manager_nameTEXT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Two-table join from providers to departments — no WHERE filter; Dr. Nguyen wants the full roster to scan herself.

Hint 2

Project the six columns she named (name fields, specialty, department name, hire date, active flag) directly from the joined rows.

Hint 3

Don't pre-filter the red flags — the audit is the human's job. Your job is to surface the joined roster cleanly.