How do you handle missing or erroneous data points in a longitudinal research study?
For this SQL exercise, treat a missing point as a scheduled visit without a measurement. Treat a point as erroneous when its value is NULL, outside the range 0 to 100, or recorded before the scheduled visit.
Output
- Return one row per missing or erroneous scheduled visit.
- Include
participant_id, participant_name, scheduled_visit_id, scheduled_date, issue_type, observed_value, and recorded_at.
- Sort by participant, scheduled date, and scheduled visit ID.