https://leetcode.com/problems/patients-with-a-condition/description/ | Easy |
---|
Column Name | Type |
---|---|
patient_id | int |
patient_name | varchar |
conditions | varchar |
Требуется вернуть patient_id
, patient_name
и conditions
пациентов, у которых есть заболевание Type I Diabetes (код начинается с префикса DIAB1
).
SELECT patient_id, patient_name, conditions
FROM Patients
WHERE conditions LIKE 'DIAB1%'
OR conditions LIKE '% DIAB1%';