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 en..
일자별로 집계가 필요한경우 DECLARE @조회시작일자 datetime , @조회종료일자 datetime SET @조회시작일자 = '2004-06-14' SET @조회종료일자 = '2004-06-18' SELECT isnull(count(case when substring(address,1,2) = '서울' then 1 end),0) as 서울 , isnull(count(case when substring(address,1,2) = '경기' then 1 end),0) as 경기 , isnull(count(case when substring(address,1,2) = '인천' then 1 end),0) as 인천 , isnull(count(case when substring(address,1,2) = '대..
SELECT CASE WHEN datepart(dw, 필드이름) = 1 THEN '일요일' WHEN datepart(dw, 필드이름) = 2 THEN '월요일' WHEN datepart(dw, 필드이름) = 3 THEN '화요일' WHEN datepart(dw, 필드이름) = 4 THEN '수요일' WHEN datepart(dw, 필드이름) = 5 THEN '목요일' WHEN datepart(dw, 필드이름) = 6 THEN '금요일' ELSE '토요일' END , count(*) FROM table_name GROUP BY datepart(dw, 필드이름) ORDER BY datepart(dw, 필드이름)
주서버 - Active Directory (부모: aaa.com) 부서버 - Active Directory (자식 도메인으로 설치: fs.aaa.com) 이런 환경을 구성할려고 이틀동안 뻘짓한 생각을 하면 휴~~~ 주서버의 넘쳐나는 용량으로 인해 새로운 서버를 들여놓고 AD권한을 주기 위해서 부모 - 자식간으로 설치하려고 했습니다. 설치시 문제점은 아무것도 없었습니다. 에러하나 없이.... 그런데 이상하게 클라이언트가 서버에 접속을 못하더군요. 혹시 서버간의 동기화가 아직 안되었나해서 하루동안 나두어봤지만 안되고, 부서버 → 주서버, 주서버 → 부서버로의 연결이 가능한걸 보면 클라이언트와 서버의 문제점인데 도저희 못찾겠더군요. 그와중에 책장에 띄이는 책한권 마크 미나시의 Windows Server 200..
ASP에서 엑셀파일로 변환한뒤 수식 설정이 안되서 적용할 방법을 찾았는데 의외로 별거 없네요;; 세자리마다 콤마 찍기: 적용할곳에 style="mso-number-format:\#\,\#\#0\"만 적용 합계 및 평균 구하기: 합계 - FORMULA="=Sum(A1:A3)" 평균 - FORMULA="=Avg(A1:A3)" 적용 소스 -1 then for r = 0 to arrListSize name = arrList(0,r) money = arrList(1,r) %> 합계 세자리 마다 콤마를 찍어주고 앞에 ₩삽입을 할경우 mso-number-format에서 \#\,\#\#0\를 \\\\#\,\#\#0\" 변경 참고사이트 - http://www.15seconds.com/issue/991021.htm
출처: 액션필터 ADO 데이터형 상수 ConstantValueDescriptionAdArray(Does not apply to ADOX.)0x2000A flag value, always combined with another data type constant, that indicates an array of that other data type. adBigInt20Indicates an eight-byte signed integer (DBTYPE_I8).adBinary128Indicates a binary value (DBTYPE_BYTES).adBoolean11Indicates a boolean value (DBTYPE_BOOL).adBSTR8Indicates a null-terminated chara..
- Total
- Today
- Yesterday
- IIS
- injection
- jquery
- 영어
- ADO
- MS-SQL
- 폰트색상
- Windows2003
- 암호화
- UTF-8
- Git
- oracle
- gitignore
- ASP.NET
- SEQUENCE
- asp
- SQL
- c#
- Visual Stuiod Team Services
- 오라클
- offline application cache
- 숙취
- 문자열 분리
- HttpCookie
- .NET Core
- index
- Convert
- pang caching
- case
- 인덱스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |