select name_code,
count(DECODE(survey_point, '5', '1' , '0'))
From statistics
where
reg_date <= '2018-mm-dd'
and reg_date >= '2018-mm-dd'
group by (name_code)
or
case when A=x then y [else Z] END

count(DECODE(survey_point, '5', '1' , '0'))
From statistics
where
reg_date <= '2018-mm-dd'
and reg_date >= '2018-mm-dd'
group by (name_code)
or
case when A=x then y [else Z] END
'ORACLE' 카테고리의 다른 글
테이블 컬럼명 select 조회용으로 (0) | 2018.11.23 |
---|