블로그 이미지
010-9967-0955 보미아빠

카테고리

보미아빠, 석이 (500)
밥벌이 (16)
싸이클 (1)
일상 (1)
Total
Today
Yesterday

달력

« » 2024.4
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

공지사항

최근에 올라온 글

음 책 검수해야 하는데......
마음 다잡고 다시 으쌰 으쌰~ 

 



if object_id('tblx') is not null
 drop table tblx
 go
 
create table tblx
 (cval char(1)
 ,x int
 ,y int
 )
 go
 
 --필요한 dot design 노가다
 insert tblx values ('1',1,3) , ('1',2,2) , ('1',2,3) , ('1',3,3) , ('1',4,3) , ('1',5,3) , ('1',6,3) , ('1',7,3)
 , ('2',1,2) , ('2',1,3) , ('2',2,1) , ('2',2,4) , ('2',3,4) , ('2',4,2) , ('2',4,3) , ('2',5,1) , ('2',6,1) , ('2',7,1) , ('2',7,2) , ('2',7,3) , ('2',7,4)
 , ('3',1,2) , ('3',1,3) , ('3',2,1) , ('3',2,4) , ('3',3,4) , ('3',4,2) , ('3',4,3) , ('3',5,4) , ('3',6,1) , ('3',6,4) , ('3',7,2) , ('3',7,3)
 , ('4',1,3) , ('4',2,3) , ('4',3,2) , ('4',3,3) , ('4',4,1) , ('4',4,3) , ('4',5,1) , ('4',5,2) , ('4',5,3) , ('4',5,4) , ('4',6,3) , ('4',7,3)
 , ('5',1,1) , ('5',1,2) , ('5',1,3) , ('5',1,4) , ('5',2,1) , ('5',3,1) , ('5',4,1) , ('5',4,2) , ('5',4,3) , ('5',5,4) , ('5',6,4) , ('5',7,1) , ('5',7,2) , ('5',7,3)
 , ('6',1,2) , ('6',1,3) , ('6',2,1) , ('6',2,4) , ('6',3,1) , ('6',4,1) , ('6',4,2) , ('6',4,3) , ('6',5,1) , ('6',5,4) , ('6',6,1) , ('6',6,4) , ('6',7,2) , ('6',7,3)
 , ('7',1,1) , ('7',1,2) , ('7',1,3) , ('7',1,4) , ('7',2,1) , ('7',2,4) , ('7',3,4) , ('7',4,4) , ('7',5,4) , ('7',6,4) , ('7',7,4)
 , ('8',1,2) , ('8',1,3) , ('8',2,1) , ('8',2,4) , ('8',3,1) , ('8',3,4) , ('8',4,2) , ('8',4,3) , ('8',5,1) , ('8',5,4) , ('8',6,1) , ('8',6,4) , ('8',7,2) , ('8',7,3)
 , ('9',1,2) , ('9',1,3) , ('9',2,1) , ('9',2,4) , ('9',3,1) , ('9',3,4) , ('9',4,2) , ('9',4,3) , ('9',4,4) , ('9',5,4) , ('9',6,1) , ('9',6,4) , ('9',7,2) , ('9',7,3)
 , ('0',1,2) , ('0',1,3) , ('0',2,1) , ('0',2,4) , ('0',3,1) , ('0',3,4) , ('0',4,1) , ('0',4,4) , ('0',5,1) , ('0',5,4) , ('0',6,1) , ('0',6,4) , ('0',7,2) , ('0',7,3)
 , ('-',4,1) , ('-',4,2)
 , (':',2,2) , (':',6,2)

 

-- 필요한 컬럼만큼 출력
 select max(case when cval = substring(num,1,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,1,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,1,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,1,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,2,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,2,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,2,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,2,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,3,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,3,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,3,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,3,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,4,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,4,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,4,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,4,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,5,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,5,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,6,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,6,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,6,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,6,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,7,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,7,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,7,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,7,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,8,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,8,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,9,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,9,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,9,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,9,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,10,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,10,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,10,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,10,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,11,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,11,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,12,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,12,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,12,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,12,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,13,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,13,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,13,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,13,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,14,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,14,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,14,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,15,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,15,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,15,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,15,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,16,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,16,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,16,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,16,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,17,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,17,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,17,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,18,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,18,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,18,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,18,1) and y = 4 then '■' else '' end)a
   , max(case when cval = substring(num,19,1) and y = 1 then '■' else '' end)a
   , max(case when cval = substring(num,19,1) and y = 2 then '■' else '' end)a
   , max(case when cval = substring(num,19,1) and y = 3 then '■' else '' end)a
   , max(case when cval = substring(num,19,1) and y = 4 then '■' else '' end)a
   from tblx a
  cross join (select convert(varchar(20), getdate(), 120) num) b -- 도트에 있는 출력할 문자열 입력
  group by x
  order by x


 

Posted by 보미아빠
, |
문제 재현을 질문 하실때, 일일이 설명하기 귀찮을 경우가 많을 것입니다.
windows blog (sankim) 를 보다가 좋은 아티를을 발견 했습니다.

psr.exe 를 이용해 문재 재현을 쉽게 레코딩 및 설명 할 수 있습니다.

첨부파일은 시작>실행 psr.exe 를 통해서 에러를 다시 나게하는 것을 주욱~ capture 한 것입니다.

녹화시작 하고 죽 ~ 녹화 하다가 comment 를 추가 시키고 싶으면 comment 버튼을 누르고 결과를 캡쳐 하시면 됩니다.
슬라이드쇼로도 볼 수 있고 아주 유용한 툴인듯 합니다.
소소한 것은 이걸로 manual 을 만들수도 있을듯 합니다.





Posted by 보미아빠
, |
많은분이 참석 하셨네요. 좋은 시간이 되었을라나 모르겠습니다.




질문은 저분에게 하세요 ^^; 농담이구요 올려주시면 최대한 답변 해보도록 하겠습니다.
앞으로도 스터디 쭈욱 나오실거죠?
역쉬 젊은피가 많이 들어오니 활력이 넘칩니다.

감사합니다.

from a
sqlsql.tistory.com
sqltag.org

P.S
숙봉~ 대단해. 화이팅!
교성이는 역쉬 똑똑해~
성욱아~ 고마워~
마지막으로 책 쓰시는 분들 대단해요 책 나오면 쓴사람들 다 모여서 거사를 치르자구요. 조금만 고생하자!
신입들! 정신 바딱 차리고 열심히 합시다.

Posted by 보미아빠
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함