SQL 실전! 실제 DB에서 연습해요(1)
Lv1. 데이터 속 김서방 찾기select count(1)from userswhere substr(name, 1, 1) = '김' Lv2. 날짜별 획득포인트 조회하기select created_at, round(avg(point)) average_pointsfrom point_usersgroup by created_at Lv3. 이용자의 포인트 조회하기select u.user_id, u.email, coalesce(p.point, 0) pointfrom users uleft join point_users p on u.user_id = p.user_idorder by point descselect u.user_id, u.email, if(p.point is null, 0, p.point) pointf..