
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
case 구문 연습 중에 강의와 동일하게 아래와 같이 작성했는데도 에러뜨면서 값이 안나옵니다 ㅜㅜ 어디가 잘못된걸까요?

작성한 코드 및 에러 메세지
select case when age between 10 and 19 and gender='male' then '10대 남성'
when age between 10 and 19 and gender='female' then '10대 여성'
when age between 20 and 29 and gender='male' then '20대 남성'
when age between 20 and 29 and gender='female' then '20대 여성' end "고객 분류"
name,
gender,
age
from customers
where age between 10 and 29
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 'name,
gender,
age
from customers
where age between 10 and 29' at line 5
