Healthcare Analytics Path · Mission 10 of 25Easy

Provider roster with red flags

Use JOIN with multiple WHERE conditions and OR logic

Back to Healthcare 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 available

dim_providersdim_departments

Hints (3)

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

Hint 1

Providers and department names live in two different tables — connect them on `department_id`

Hint 2

A straightforward join, no WHERE filter. The 'red flags' are for Dr. Nguyen to spot by eye in the full roster

Hint 3

`SELECT p.first_name, p.last_name, p.specialty, d.department_name, p.hire_date, p.is_active FROM dim_providers p JOIN dim_departments d ON ___`