'2019/10/20'에 해당되는 글 2건

  1. 2019.10.20 sql pivot / crosstab
  2. 2019.10.20 subquery

요렇게 여러개에 대해서 나열된 녀석들을

 

아래처럼 바꾸어주는걸 pivot이라고 표현하는데

위의 정보는 로그라는 느낌이라면, pivor으로 표현하면 먼가 전문적인 느낌이 든다?

아무튼.. 하나의 기준(여기서는 cdate)에 하나의 값 분류로 정렬한다.. 라고 하면 맞는걸까?

[링크 : https://splee75.tistory.com/110]

 

crosstab

[링크 : https://codeday.me/ko/qa/20190307/17921.html]

[링크 : https://www.postgresql.org/docs/9.1/tablefunc.html]

[링크 : http://www.gurubee.net/article/80779]

 

+

2019.10.21

crosstab 여러가지 방식이 있으나..

crosstab('데이터','컬럼명') 으로 하는게 가장 확실한 듯?

[링크 : https://yahwang.github.io/posts/76]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgres tde pgcrypto  (0) 2019.10.25
sql ' escape  (0) 2019.10.21
subquery  (0) 2019.10.20
array_agg() 여러개 컬럼 합치기  (0) 2019.10.18
postgresql vacuum  (0) 2019.10.16
Posted by 구차니

여러개의 행을 돌려주는 서브쿼리라는게 이 기능에 대한 카테고리일려나?

아무튼 아무생각 없이 쓰던 select where in 이 이 구문이라니..

 

[링크 : http://www.gurubee.net/lecture/1503]

[링크 : https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781783989003/1/ch01lvl1sec16/subqueries-that-return-multiple-rows]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

sql ' escape  (0) 2019.10.21
sql pivot / crosstab  (0) 2019.10.20
array_agg() 여러개 컬럼 합치기  (0) 2019.10.18
postgresql vacuum  (0) 2019.10.16
pgadmin4 분석기능  (0) 2019.10.16
Posted by 구차니