[Tableau] 원 모양 퍼센트 시각화
원 모양 퍼센트 차트에 대해 필사해보자 :)
LeetCode 1527. Patients With a Condition 문제를 파헤쳐보자 :)
![[SQL] LeetCode 1527. Patients With a Condition](https://www.notion.so/image/attachment%3Ae91122d7-48d2-4054-a288-bf7c6cd14cd1%3A%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA_2024-05-23_12.41.58.png?table=block&id=2cb13e36-0d89-8016-9d71-d779f20b2f77&cache=v2)
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%’를 가진 문자열에 대해서만 모든 행을 반환한다.