안녕하세요...?
table1
column1 column2 column3 일자
=========================================
aa 1 1 2007-06-01
aa 1 2 2007-06-01
aa 1 3 2007-06-01
aa 2 1 2007-06-01
aa 2 2 2007-06-01
aa 2 3 2007-06-01
aa 2 4 2007-06-21
aa 3 1 2007-06-21
aa 3 2 2007-06-21
위와 같은 데이터가 있을때
얻고자흐는 값은
일자 column1 column2갯수 column3갯수
2007-06-01 aa 2 6
2007-06-21 aa 2 3
이렇습니다....
어떻게 쿼리를 하여야 하는지요....?
|