1. SQL 조건문 IF, CASE[조건문] IFif(조건, 조건을 충족할 때, 조건을 충족하지 못할 때)--예시 (재고 상태 표시)select name, if(stock > 0, '판매중', '품절') as statusfrom products[조건문] CASEcase when 조건1 then 값(수식)1 when 조건2 then 값(수식)2 else 값(수식)3 -- 위 조건 부합하지 않는 게 없을 경우 생략 가능end--예시 (상품 가격대 분류)select name, case when price >= 50000 then '프리미엄' when price >= 20000 then '일반' else '..