
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
안녕하세요!
3주차 6번째 강의의 두 번째 실습 코드를 학습하던 중에
화면의 코드와 동일하게 작성했는데 아래와 같은 오류 코드가 떠서 문의드립니다!
작성한 코드 및 에러 메세지
SELECT case when day_of_the_week='weekday' then 3000*(if quantity>3, 1.2, 1)
when day_of_the_week='weekend' then 3500*(if quantity>3, 1.2, 1)
end "배달할증료",
restaurant_name,
order_id,
day_of_the_week,
quantity
FROM food_orders
SQL Error [1064] [42000]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'quantity>3, 1.2, 1)
when day_of_the_week='weekend' then 3500*(if qu' at line 1
Error position:오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
