회원(users) 테이블에서 전체 유저의 평균연령을 조회하세요.
결과 예시
select avg(age)
from `thelook_ecommerce.users`
회원(users) 테이블에서 여성 유저의 평균연령을 조회하세요.
결과 예시
select avg(age)
from `thelook_ecommerce.users`
where gender='F'
회원(users) 테이블에서 국가별 가입자수를 조회하세요.
결과 예시
select country, count(id) as country_user_count
from `thelook_ecommerce.users`
group by country;
회원(users) 테이블에서 남성 유저의 국가별 가입자 수를 조회하세요.
결과 예시
select country, count(id) as country_user_count
from `thelook_ecommerce.users`
where gender = 'M'
group by country;