
programmers lv2. 자동차 종류 별 특정 옵션이 포함된 자동차 수 구하기
where options in ('%통풍시트%'or'%열선시트%'or'%가죽시트%')
where options like '%통풍시트%'
or options like '%열선시트%'
or options like '%가죽시트%'
where options regexp '통풍시트|열선시트|가죽시트'
틀린이유 : in은 정확히 일치하는 값을 비교하는데 사용된다. in %%는 같이 못씀.
cf. 반대도 가능하다.
programmers lv1.python 개발자 찾기 문제
where 'Python' in (skill_1, skill_2, skill_3)
SELECT ID,EMAIL,FIRST_NAME,LAST_NAME
FROM DEVELOPER_INFOS
WHERE 'Python' IN (SKILL_1,SKILL_2,SKILL_3)
ORDER BY ID