LIKE for start-of-string or space-delimited match
SELECT
patient_id,
name
FROM patients
WHERE conditions LIKE 'DIAB1%'
OR conditions LIKE '% DIAB1%'This solution works because valid matches appear either at the start of the string or immediately after a space. It is compact and fits the simplified schema in this challenge.