select a.type, a.area, count(a.no=b.no) from a,b where a.no=b.no and b.seq='1' and date between '2017-08-15' and '2017-09-11' and a.type in ('dsa','errf') and a.area='kr' group by a.type,a.area;
이렇게 쿼리를 작성해서 실행을하면
type | area | count(a.no=b.no) |
dsa | kr | 5 |
errf | kr | 4 |
이런 결과가 나옵니다.
이 결과물을
type | area | count(a.no=b.no) |
국내 | kr | 9 |
이런식으로 만들수 있는지 물어본거 였습니다.