서브쿼리를 이용한 초간단 통계 쿼리 예제
SELECT SUM( DECODE(hope,1,1,0) hope1, DECODE(hope,2,1,0) hope2, DECODE(hope,3,1,0) hope3, DECODE(hope,4,1,0) hope4 ) FROM cist_app GROUP BY hope;
서브쿼리를 이용한 초간단 통계 쿼리 예제
SELECT SUM( DECODE(hope,1,1,0) hope1, DECODE(hope,2,1,0) hope2, DECODE(hope,3,1,0) hope3, DECODE(hope,4,1,0) hope4 ) FROM cist_app GROUP BY hope;
[mysql] 쿼리 실행시 ERROR 1366 (HY000) : incorrect string value : for column
[oracle] Oracle 사용자 추가 절차
[oracle] SQL문 실행 방법 3가지
[sql] 간단한 SQL 문법 정리
[sql] 간단한 통계 서브쿼리 예제..
[sql] 쿼리로 문자열 검색해서 일괄 치환하기
[sql] 한눈에 보이는 Join