[SQL] Programmers_JOIN. Front End 개발자 찾기
Programmers JOIN. Front End 개발자 찾는 문제를 파헤쳐보자 :)
LeetCode 1527. Patients With a Condition 문제를 파헤쳐보자 :)
Patients 테이블patient_id는 Patients의 기본 키입니다.conditions에 공백으로 구분된 0개 이상의 코드가 포함되어 있습니다.patient_id, patient_name 및 conditions을 찾는 솔루션을 작성합니다. (제1형 당뇨병은 항상 DIBA1 접두사로 시작합니다.)SELECT * FROM Patients WHERE conditions LIKE 'DIAB1%' OR conditions LIKE '% DIAB1%';
WHERE conditions LIKE 'DIAB1%' OR conditions LIKE '% DIAB1%'
SELECT * FROM Patients WHERE conditions LIKE 'DIAB1%' OR conditions LIKE '% DIAB1%';
Patients 테이블의 conditions의 ‘DIAB1%’ 또는 ‘% DIAB1%’를 가진 문자열에 대해서만 모든 행을 반환한다.