티스토리 뷰
SELECT [총 ] = count(age) , [10대] = count(case when age/10=1 then 1 end) , [20대] = count(case when age/10=2 then 1 end) , [30대] = count(case when age/10=3 then 1 end) , [40대] = count(case when age/10=4 then 1 end) , [50대] = count(case when age/10=5 then 1 end) , [60대] = count(case when age/10=6 then 1 end) , [70대] = count(case when age/10=7 then 1 end) , [80대] = count(case when age/10=8 then 1 end) , [90대] = count(case when age/10=9 then 1 end) FROM TABLE
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 암호화
- 인덱스
- case
- HttpCookie
- 폰트색상
- pang caching
- 문자열 분리
- UTF-8
- offline application cache
- Windows2003
- oracle
- injection
- index
- SQL
- .NET Core
- SEQUENCE
- ASP.NET
- Git
- IIS
- gitignore
- c#
- ADO
- asp
- 숙취
- Convert
- 오라클
- Visual Stuiod Team Services
- MS-SQL
- jquery
- 영어
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함