Database
2013.04.23 14:07
[sql] 간단한 통계 서브쿼리 예제..
Views 15176 Comment 0
서브쿼리를 이용한 초간단 통계 쿼리 예제
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;
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
165 | System/OS | [router] 시스코 라우터 명령어 모드.. | hooni | 2013.04.23 | 13011 |
164 | Algorithm | [security] RSA 암호화 설명과 예.. | hooni | 2013.04.23 | 16698 |
163 | Algorithm | [security] 블럭 암호에 대해서.. | hooni | 2013.04.23 | 17201 |
162 | Develop | [sh] html 안에 있는 img 다운 받는 쉘 스크립트 | hooni | 2020.05.26 | 763 |
161 | Develop | [sh] 쉘스크립트 if 비교 연산 | hooni | 2020.05.26 | 61005 |
160 | Develop | [spring] 스프링 IoC/DI | hooni | 2013.04.23 | 11410 |
159 | System/OS | [sql] alter table 쿼리 예제 | hooni | 2003.04.23 | 12523 |
158 | System/OS | [sql] insert into select 사용하기 | hooni | 2013.04.23 | 27641 |
157 | Database | [sql] 간단한 SQL 문법 정리 | hooni | 2003.04.23 | 12628 |
» | Database | [sql] 간단한 통계 서브쿼리 예제.. | hooni | 2013.04.23 | 15176 |
155 | System/OS | [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문) | hooni | 2003.04.23 | 12931 |
154 | System/OS | [sql] 조회구문(select)에서 중복 데이터를 한 번만 출력 (distinct) 1 | hooni | 2013.04.23 | 34070 |