상세 컨텐츠

본문 제목

회원분포현황 - 성별

청강컴정/09DataBase중간고사

by luckey 2009. 4. 21. 17:27

본문

select sex, sum(cnt) as visitCnt, count(sex) as sexCnt from
(
select sex as sex, sum(visit_count_day) as cnt from member as mb
inner join member_visit as mv
on mb.sn = mv.fk_member
group by sn, sex
) jj
group by sex

관련글 더보기

댓글 영역