<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>코끼리를 냉장고에 넣는 방법</title>
    <link>https://dololak.tistory.com/</link>
    <description>IT, 프로그래밍, 컴퓨터 활용 정보 등을 위한 블로그</description>
    <language>ko</language>
    <pubDate>Sun, 5 Apr 2026 23:07:59 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>도로락</managingEditor>
    <image>
      <title>코끼리를 냉장고에 넣는 방법</title>
      <url>https://tistory1.daumcdn.net/tistory/2831930/attach/399d496fd49d4a9c8fe17148000e5c2c</url>
      <link>https://dololak.tistory.com</link>
    </image>
    <item>
      <title>[Database] 다중컬럼(Multi Column) IN 연산자 설명</title>
      <link>https://dololak.tistory.com/812</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;다중컬럼(Multi Column) IN 연산자 설명&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;보통 &lt;code&gt;IN&lt;/code&gt; 연산자를 사용할때는 특정 컬럼이 여러개의 값 중 하나 일 때의 조건에 사용합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;예를 들어 아래와 같이 사원 테이블이 있다고 가정하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99B628335F4DAA8423&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99B628335F4DAA8423&quot; width=&quot;900&quot; height=&quot;302&quot; filename=&quot;Image.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;부서번호가 &lt;b&gt;20&lt;/b&gt;, &lt;b&gt;30&lt;/b&gt; 인 부서에 속해있는 사원을 조회하는 경우 IN 연산자를 사용하여 아래와 같이 조회할 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;DEPTNO&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#c10aff&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;30&lt;/span&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;IN 연산자 대신 &lt;b&gt;OR&lt;/b&gt;를 사용할수도 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;(DEPTNO&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;20&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;OR&amp;nbsp;(DEPTNO&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;30&lt;/span&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과는 두 쿼리 모두 아래와 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994655485F4DE65C0F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F994655485F4DE65C0F&quot; width=&quot;900&quot; height=&quot;235&quot; filename=&quot;20200901_151223.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이번에는 &lt;code&gt;부서번호&lt;/code&gt;가 &lt;code&gt;20&lt;/code&gt; 이면서 직책이 &lt;code&gt;MANAGER&lt;/code&gt;이거나 &lt;code&gt;부서번호&lt;/code&gt;가 &lt;code&gt;30&lt;/code&gt; 이면서 직책이&amp;nbsp;&lt;code&gt;CLERK&lt;/code&gt;인 사원을 알아보도록 하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;(DEPTNO&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;20&lt;/span&gt;&amp;nbsp;AND&amp;nbsp;JOB&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;OR&amp;nbsp;(DEPTNO&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;30&lt;/span&gt;&amp;nbsp;AND&amp;nbsp;JOB&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과는 아래와 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9911C4355F4DAA8525&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9911C4355F4DAA8525&quot; width=&quot;900&quot; height=&quot;61&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;다중 컬럼 IN 사용&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;방금 앞서 작성한 쿼리는 다중 컬럼을 이용한 IN 연산자로 변경 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;하나의 컬럼만 사용하는 IN 연산자와는 다르게 괄호&lt;code&gt;( )&lt;/code&gt;가 중첩으로 들어가고 안쪽의 괄호는 &lt;code&gt;AND&lt;/code&gt; 조건으로 묶이게 됩니다. 바로 위에서 작성한 쿼리와 동일한 효과를 내는 것입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;(DEPTNO,&amp;nbsp;JOB)&amp;nbsp;IN&amp;nbsp;((&lt;span style=&quot;color:#c10aff&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;),&amp;nbsp;(&lt;span style=&quot;color:#c10aff&quot;&gt;30&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;));&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;당연히 결과는 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/992C3E4D5F4DAA8525&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F992C3E4D5F4DAA8525&quot; width=&quot;900&quot; height=&quot;61&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;주의할 점&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;다중 컬럼 IN 연산자를 사용했을때의 결과와 아래 여러개의 IN을 사용했을때의 결과는 다를 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;DEPTNO&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#c10aff&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;30&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;AND&amp;nbsp;JOB&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;예를 들어 &lt;b&gt;4&lt;/b&gt;번 행을 보면 부서코드가 &lt;b&gt;20&lt;/b&gt;이면서 직책이&amp;nbsp;&lt;b&gt;CLERK&lt;/b&gt;인 사원도 포함됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998EE83B5F4DAA8621&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998EE83B5F4DAA8621&quot; width=&quot;900&quot; height=&quot;121&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;서브쿼리에서의 활용&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;다중 컬럼 IN 연산자는 서브쿼리에서도 사용이 가능합니다. 아래 쿼리는 의미 있는 쿼리는 아니지만 의미를 떠나서 여러개의 컬럼을 가지게 되는 서브쿼리를 이용할 수 있다는 점을 참고해 주시기 바랍니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;(DEPTNO,&amp;nbsp;JOB)&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;2000&lt;/span&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99BB3D4A5F4DAA8627&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99BB3D4A5F4DAA8627&quot; width=&quot;900&quot; height=&quot;138&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>데이터베이스[DB]</category>
      <category>column</category>
      <category>DATABASE</category>
      <category>in</category>
      <category>multi</category>
      <category>SQL</category>
      <category>다중</category>
      <category>서브쿼리</category>
      <category>여러개</category>
      <category>열</category>
      <category>컬럼</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/812</guid>
      <comments>https://dololak.tistory.com/812#entry812comment</comments>
      <pubDate>Tue, 1 Sep 2020 11:05:08 +0900</pubDate>
    </item>
    <item>
      <title>[Oracle] 오라클 열을 행으로 바꾸는 UNPIVOT 사용법 및 설명</title>
      <link>https://dololak.tistory.com/810</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;오라클 열을 행으로 바꾸는 UNPIVOT 사용법 및 설명&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;오라클에서 &lt;code&gt;UNPIVOT&lt;/code&gt;을 사용하면 가로로 출력되는 여러 &lt;b&gt;속성(COLUMN)&lt;/b&gt; 데이터를 세로로 돌려 &lt;b&gt;행(ROW)&lt;/b&gt;으로 출력할 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;사원들의 부서번호, 직책, 급여 보기&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;오라클 사용자라면 누구나 알법한 SCOTT 형님(?)의 EMP 테이블입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;사원정보를 담고 있으며, &lt;span style=&quot;font-weight: bold; color: rgb(54, 101, 238);&quot;&gt;JOB(직책)&lt;/span&gt;과 &lt;span style=&quot;font-weight: bold; color: rgb(54, 101, 238);&quot;&gt;SAL(급여)&lt;/span&gt;, &lt;span style=&quot;font-weight: bold; color: rgb(54, 101, 238);&quot;&gt;부서번호(DEPTNO)&lt;/span&gt;가 실습시 사용될 컬럼입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/990B52435F44BBC41B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F990B52435F44BBC41B&quot; width=&quot;900&quot; height=&quot;302&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;사원들의 부서번호, 직책, 급여정보를 보도록 하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;ENAME,&amp;nbsp;DEPTNO,&amp;nbsp;JOB,&amp;nbsp;SAL&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;ENAME;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;평소 사용하던 문법이니 출렬 결과를 예상하셨을 것입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 418px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/996C0C405F44BBC521&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F996C0C405F44BBC521&quot; width=&quot;418&quot; height=&quot;318&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;여러 속성들을 세로로 보기&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;만약 부서번호, 직책, 급여를 &lt;code&gt;속성(COLUMN)&lt;/code&gt;으로 두지 않고 &lt;code&gt;행(ROW)&lt;/code&gt;으로 출력하려면 어떻게 해야할까요? 세가지 속성이니 세 개의 행으로 나누는 것입니다. 마치 게임에서 캐릭터의 능력치를 보는듯합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 374px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998B634C5F44BBC623&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998B634C5F44BBC623&quot; width=&quot;374&quot; height=&quot;415&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;UNION ALL을 이용한 열(COLUMN)을 행(ROW)으로 바꾸기&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;가장 단순한 방법으로는 &lt;code&gt;UNION ALL&lt;/code&gt;을 이용하여 속성별로 한 행씩 만들어 합치는 것입니다. 결과는 위와 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENAME,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'JOB'&lt;/span&gt;&amp;nbsp;AS&amp;nbsp;속성명,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOB&amp;nbsp;AS&amp;nbsp;속성값&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;UNION&amp;nbsp;ALL&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENAME,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SAL'&lt;/span&gt;&amp;nbsp;AS&amp;nbsp;속성명,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TO_CHAR(SAL)&amp;nbsp;AS&amp;nbsp;속성값&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;UNION&amp;nbsp;ALL&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENAME,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'DEPTNO'&lt;/span&gt;&amp;nbsp;AS&amp;nbsp;속성명,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TO_CHAR(DEPTNO)&amp;nbsp;AS&amp;nbsp;속성값&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;ENAME,&amp;nbsp;속성명;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;UNPIVOT을 이용한&amp;nbsp;열(COLUMN)을 행(ROW)으로 바꾸기&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이번에는 이 글의 최종 목적인 &lt;b&gt;UNPIVOT&lt;/b&gt;을 사용하여 바꿔보도록 하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ENAME,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TO_CHAR(DEPTNO)&amp;nbsp;AS&amp;nbsp;DEPTNO,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOB,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TO_CHAR(SAL)&amp;nbsp;AS&amp;nbsp;SAL&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;UNPIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;속성값&amp;nbsp;FOR&amp;nbsp;속성명&amp;nbsp;IN&amp;nbsp;(JOB,&amp;nbsp;SAL,&amp;nbsp;DEPTNO)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;ENAME,&amp;nbsp;속성명;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과는 앞의 UNION ALL을 이용한것과 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 374px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/997F95445F44BBC71E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F997F95445F44BBC71E&quot; width=&quot;374&quot; height=&quot;352&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;UNPIVOT 사용 형식 및 설명&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;먼저 UNPIVOT을 하고싶은 대상 테이블을 FROM절에 지정합니다. &lt;code&gt;FROM&lt;/code&gt;절 다음에 &lt;code&gt;UNPIVOT&lt;/code&gt;문을 사용할 수 있습니다. 대상 테이블에서 컬럼(속성)이 UNPIVOT시에는 행 데이터로 바뀝니다.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;어떤 컬럼들을 UNPIVOT할것인지를 &lt;code&gt;IN&lt;/code&gt;에 명시합니다. 이때 &lt;code&gt;IN&lt;/code&gt;에 명시되는 속성들은 타입이 모두 동일애햐 합니다. 왜냐하면 앞의 UNION ALL 예제에서도 보았듯이, 여러행으로 표현하기 위해서는 모든 값들의 타입이 동일해야 하기 때문입니다. &lt;b&gt;UNION ALL&lt;/b&gt;과 동일한 원리입니다.&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;예제에서는 &lt;b&gt;DEPTNO&lt;/b&gt;, &lt;b&gt;JOB&lt;/b&gt;, &lt;b&gt;SAL&lt;/b&gt;이 이에 해당됩니다. 데이터가 아닌 단순 필드명이었는데, UNPIVOT이 되면 하나의 데이터가 됩니다. 그리고 이 값들을 출력시에 어떤 컬럼명으로 출력할것인지의 별칭을 UNPIVOT의 &lt;code&gt;FOR&lt;/code&gt; 다음에 선언합니다.&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UNPIVOT&amp;nbsp;대상&amp;nbsp;테이블]&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;UNPIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[기존&amp;nbsp;데이터를&amp;nbsp;나타낼&amp;nbsp;필드명]&amp;nbsp;FOR&amp;nbsp;[기존&amp;nbsp;컬럼명을&amp;nbsp;나타낼&amp;nbsp;컬럼명]&amp;nbsp;IN&amp;nbsp;([세로로&amp;nbsp;바꿀&amp;nbsp;컬럼명들])&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;그리고 DEPTNO, JOB, SAL의 실제 &lt;b&gt;데이터(값)&lt;/b&gt;들을 표현할 필드의 별칭을 UNPIVOT의 FOR 앞에 선언합니다. 만약 UNPIVOT할 속성들간에 타입이 다르다면 &lt;code&gt;TO_CHAR&lt;/code&gt;등의 함수를 통해 &lt;b&gt;FROM&lt;/b&gt;절에서 데이터 타입을 통일해준 상태에서 UNPIVOT을 수행해야 합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;연관글&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://dololak.tistory.com/811&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 12pt; color: rgb(241, 95, 95);&quot;&gt;[Oracle] 오라클 행을 열로 바꾸는 PIVOT 사용법 및 설명 및 PIVOT 대체하기&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>데이터베이스[DB]</category>
      <category>column</category>
      <category>oracle</category>
      <category>Row</category>
      <category>unpivot</category>
      <category>뒤집기</category>
      <category>열</category>
      <category>오라클</category>
      <category>행</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/810</guid>
      <comments>https://dololak.tistory.com/810#entry810comment</comments>
      <pubDate>Wed, 26 Aug 2020 00:30:00 +0900</pubDate>
    </item>
    <item>
      <title>[Oracle] 오라클 행을 열로 바꾸는 PIVOT 사용법 및 설명 및 PIVOT 대체하기</title>
      <link>https://dololak.tistory.com/811</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;오라클 행을 열로 바꾸는 PIVOT 사용법 및 설명&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;및 PIVOT 대체하기&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;오라클에서 &lt;span style=&quot;font-weight: bold; color: rgb(54, 101, 238);&quot;&gt;PIVOT&lt;/span&gt;을 사용하면 세로로 출력되는 형식의 데이터를 가로로 뒤집어 출력할 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;부서별 직책별 평균 급여 구하기&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;오라클 사용자라면 누구나 알법한 SCOTT 형님(?)의 EMP 테이블입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;사원정보를 담고 있으며, &lt;code&gt;JOB(직책)&lt;/code&gt;과 &lt;code&gt;SAL(급여)&lt;/code&gt;, &lt;code&gt;부서번호(DEPTNO)&lt;/code&gt;가 실습시 사용될 컬럼입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99F14B345F44BC8D14&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99F14B345F44BC8D14&quot; width=&quot;900&quot; height=&quot;302&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;각각의 부서별 직책별 평균 급여를 구해보도록 하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB,&amp;nbsp;AVG(SAL)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;간단하게 출력되었으나 여러 행(ROW)로 출력되어 뭔가 한번에 정리가 되지 않아 불편합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 415px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99110C3F5F44BC8E20&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99110C3F5F44BC8E20&quot; width=&quot;415&quot; height=&quot;213&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;세로를 가로로 바꾼다면&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;code&gt;세로(ROW)&lt;/code&gt;로 출력된 직책들을 아래와 같이&amp;nbsp;&lt;code&gt;가로(COLUMN)&lt;/code&gt;로 직책별로 나열되면 편할 것 같습니다.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 811px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99AD733E5F44BC8E1B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99AD733E5F44BC8E1B&quot; width=&quot;811&quot; height=&quot;86&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;첫번째 방법&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;먼저 PIVOT이 없다는 가정하에 두가지 정도 방법이 있을 것 같습니다. 첫번째로는 서브쿼리에서 &lt;code&gt;DECODE&lt;/code&gt;함수나 &lt;code&gt;CASE&lt;/code&gt;문을 통해 부서별 직책별 합계를 구한 후에 다시 부서별로 &lt;code&gt;GROUP BY&lt;/code&gt;하여 &lt;code&gt;AVG&lt;/code&gt;로 평균값을 구하는 것입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(ANALYST)&amp;nbsp;AS&amp;nbsp;ANALYST,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(CLERK)&amp;nbsp;AS&amp;nbsp;CLERK,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(MANAGER)&amp;nbsp;AS&amp;nbsp;MANAGER,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(PRESIDENT)&amp;nbsp;AS&amp;nbsp;PRESIDENT,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(SALESMAN)&amp;nbsp;AS&amp;nbsp;SALESMAN&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEPTNO,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'ANALYST'&lt;/span&gt;,&amp;nbsp;SUM(SAL))&amp;nbsp;AS&amp;nbsp;ANALYST,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;,&amp;nbsp;SUM(SAL))&amp;nbsp;AS&amp;nbsp;CLERK,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;SUM(SAL))&amp;nbsp;AS&amp;nbsp;MANAGER,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'PRESIDENT'&lt;/span&gt;,&amp;nbsp;SUM(SAL))&amp;nbsp;AS&amp;nbsp;PRESIDENT,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;,&amp;nbsp;SUM(SAL))&amp;nbsp;AS&amp;nbsp;SALESMAN&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;두번째 방법&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;훨씬 심플한 방법인데 &lt;code&gt;DEPTNO&lt;/code&gt;로만 &lt;code&gt;GROUP BY&lt;/code&gt;한 상태에서 &lt;code&gt;DECODE&lt;/code&gt;를 통해 직책별 급여 컬럼으로 분류한 뷰를 만든 상태에서 곧바로 &lt;code&gt;AVG&lt;/code&gt;로 직책별 급여를 집계하여 출력하는 방법입니다. 두가지 결과는 모두 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEPTNO,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'ANALYST'&lt;/span&gt;,&amp;nbsp;SAL))&amp;nbsp;AS&amp;nbsp;ANALYST,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;,&amp;nbsp;SAL))&amp;nbsp;AS&amp;nbsp;CLERK,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;SAL))&amp;nbsp;AS&amp;nbsp;MANAGER,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'PRESIDENT'&lt;/span&gt;,&amp;nbsp;SAL))&amp;nbsp;AS&amp;nbsp;PRESIDENT,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(DECODE(JOB,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;,&amp;nbsp;SAL))&amp;nbsp;AS&amp;nbsp;SALESMAN&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;PIVOT을 사용한 방법&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;PIVOT을 사용하면 아래와 같이 바꿀 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;JOB,&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;PIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(SAL)&amp;nbsp;FOR&amp;nbsp;JOB&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ffd500&quot;&gt;'ANALYST'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'PRESIDENT'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과는 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 787px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991E15375F44BC8F28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F991E15375F44BC8F28&quot; width=&quot;787&quot; height=&quot;87&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;PIVOT 사용 형식&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;사용 형식을 살펴보자면 아래와 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;출력할&amp;nbsp;컬럼&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;[PIVOT&amp;nbsp;대상&amp;nbsp;테이블]&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;PIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[집계함수]&amp;nbsp;FOR&amp;nbsp;[가로로&amp;nbsp;출력할&amp;nbsp;열]&amp;nbsp;IN&amp;nbsp;([조건&amp;nbsp;대상&amp;nbsp;값])&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;PIVOT 설명 및 동작원리&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;PIVOT은 함수가 아니라 문법이기 때문에&lt;/span&gt; &lt;code&gt;FROM&lt;/code&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;절 다음에 오도록 사용합니다.&amp;nbsp;&lt;/span&gt;&lt;code&gt;PIVOT&lt;/code&gt;은 내부적으로 &lt;code&gt;GROUP BY&lt;/code&gt;를 &lt;span style=&quot;font-weight: bold;&quot;&gt;행&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;열&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;두가지 방향으로 실행&lt;/span&gt;한다는 사실을 알아야 합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;모든 사원의 직책별 평균 급여를 PIVOT을 통해 가로로 나열하여 보도록 하겠습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;JOB,&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;PIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(SAL)&amp;nbsp;FOR&amp;nbsp;JOB&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ffd500&quot;&gt;'ANALYST'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'PRESIDENT'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;);&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과는 아래와 같습니다.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 739px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/999F163A5F44BC9020&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F999F163A5F44BC9020&quot; width=&quot;739&quot; height=&quot;45&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;여기서 달라진 점은 FROM절에 있는 대상 테이블입니다. 여기서는 서브쿼리를 사용했는데 &lt;code&gt;JOB&lt;/code&gt;과 &lt;code&gt;SAL&lt;/code&gt;컬럼을 명시했습니다. PIVOT문을 사용할때 FROM절에 대상이 되는 테이블의 모든 컬럼은 &lt;code&gt;GROUP BY&lt;/code&gt;의 대상이 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;JOB,&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;앞서 위에서 살펴본&amp;nbsp;&lt;span style=&quot;font-weight: bold;&quot;&gt;PIVOT 사용 형식&lt;/span&gt;을 참고하시고 이 중 PIVOT문에 &lt;span style=&quot;font-weight: bold;&quot;&gt;가로로 출력할 열&lt;/span&gt;은 가로로 나열할때의 GROUP BY의 대상이 됩니다. 즉 &lt;code&gt;JOB&lt;/code&gt;이 GROUP BY 되어 집계된 후 가로로 나열됩니다. &lt;span style=&quot;font-weight: bold;&quot;&gt;집계함수&lt;/span&gt;에 사용되는 대상 열은 집계 대상이므로 제외하고 나머지 열들은 세로(ROW)로 나열할때 GROUP BY 대상이 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;설명이 어려운데, 아래 PIVOT문을 보도록 합니다. PIVOT 대상 테이블에는 &lt;code&gt;ENAME&lt;/code&gt;, &lt;code&gt;JOB&lt;/code&gt;, &lt;code&gt;SAL&lt;/code&gt;컬럼이 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;ENAME,&amp;nbsp;JOB,&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;PIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(SAL)&amp;nbsp;FOR&amp;nbsp;JOB&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ffd500&quot;&gt;'ANALYST'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'CLERK'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'PRESIDENT'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;);&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이중 PIVOT 대상 컬럼인 JOB은 가로로 GROUP BY 됩니다. SAL은 집계함수의 대상이 됩니다. 나머지 컬럼인 ENAME컬럼이 우리가 평소에 사용하는 세로로 GROUP BY의 대상이 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/990E86335F44BC9121&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F990E86335F44BC9121&quot; width=&quot;900&quot; height=&quot;282&quot; filename=&quot;evernote_image_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;즉 정리해보자면 아래와 같습니다.&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;ENAME으로 GROUP BY를 최초로 실행한 상태에서(세로)&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;JOB으로 GROUP BY를 실행(가로)&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;SAL로 AVG(평균) 집계&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;따라서 최초 FROM절에 명시된 대상 테이블 또는 뷰의 컬럼들에 따라 PIVOT의 결과 또한 달라지게 되는 것입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;PIVOT 별칭 주기&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;PIVOT에 별칭을 사용하고자 하는 경우&lt;/span&gt; &lt;code&gt;FOR IN&lt;/code&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;문에&lt;/span&gt; &lt;code&gt;AS&lt;/code&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;를 사용하면 됩니다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;매니저,&amp;nbsp;영업사원&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;JOB,&amp;nbsp;SAL&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;PIVOT&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVG(SAL)&amp;nbsp;FOR&amp;nbsp;JOB&amp;nbsp;IN&amp;nbsp;(&lt;span style=&quot;color:#ffd500&quot;&gt;'MANAGER'&lt;/span&gt;&amp;nbsp;AS&amp;nbsp;매니저,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;'SALESMAN'&lt;/span&gt;&amp;nbsp;AS&amp;nbsp;영업사원)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;);&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;연관글&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://dololak.tistory.com/810&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(241, 95, 95); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 12pt;&quot;&gt;[Oracle] 오라클 열을 행으로 바꾸는 UNPIVOT 사용법 및 설명&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>데이터베이스[DB]</category>
      <category>column</category>
      <category>oracle</category>
      <category>pivot</category>
      <category>대신</category>
      <category>대체</category>
      <category>돌리기</category>
      <category>뒤집기</category>
      <category>설명</category>
      <category>열</category>
      <category>오라클</category>
      <category>원리</category>
      <category>피벗</category>
      <category>행</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/811</guid>
      <comments>https://dololak.tistory.com/811#entry811comment</comments>
      <pubDate>Tue, 25 Aug 2020 16:32:45 +0900</pubDate>
    </item>
    <item>
      <title>[Windows] Windows10 원격 데스크톱 설정 및 접속 방법</title>
      <link>https://dololak.tistory.com/808</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;Windows10 원격 데스크톱 설정 및 접속 방법&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;코로나로 재택 근무가 활성화 되면서 집에 있는 컴퓨터를 가지고 회사에 있는 pc에 원격 접속해야 하는 경우가 있습니다. 여러가지 원격 솔루션(팀뷰어같은..)이 있지만 상업적 용도로는 유료이기에 Windows에 기본적으로 제공되는 원격 데스크톱 기능이 유용할때가 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;단 접속할 대상 PC는 &lt;span style=&quot;font-weight: bold;&quot;&gt;Windows10 Professional&lt;/span&gt; 버전이어야 합니다. 내 앞에 있는 PC(클라이언트)는 Pro버전이 아니어도 관계 없습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;접속할 원격 PC에서의 설정이 먼저 필요합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;원격 PC 설정&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;Windows 왼쪽 하단에 &lt;span style=&quot;font-weight: bold;&quot;&gt;시작버튼&lt;/span&gt;을 &lt;span style=&quot;font-weight: bold;&quot;&gt;마우스 우클릭&lt;/span&gt;합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 185px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99CB214D5F413ACD35&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99CB214D5F413ACD35&quot; width=&quot;185&quot; height=&quot;216&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;설정&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 300px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A2AE3A5F413ACE0D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A2AE3A5F413ACE0D&quot; width=&quot;300&quot; height=&quot;489&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;시스템&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 556px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99518F3D5F413ACF1D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99518F3D5F413ACF1D&quot; width=&quot;556&quot; height=&quot;251&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;원격 데스크톱&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;활성화&lt;/span&gt;를 &lt;span style=&quot;font-weight: bold;&quot;&gt;켬&lt;/span&gt;으로 변경합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 874px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FF913B5F413AD00F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FF913B5F413AD00F&quot; width=&quot;874&quot; height=&quot;730&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이후 제어판으로 이동 후 &lt;span style=&quot;font-weight: bold;&quot;&gt;시스템 및 보안&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 416px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99647B4B5F413AD133&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99647B4B5F413AD133&quot; width=&quot;416&quot; height=&quot;424&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Windows 방화벽에서 앱 허용&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 645px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E6313E5F413AD110&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E6313E5F413AD110&quot; width=&quot;645&quot; height=&quot;306&quot; filename=&quot;evernote_image_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;원격 데스크톱을 아래와 같이 허용으로 설정합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 775px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994E78375F413AD20F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F994E78375F413AD20F&quot; width=&quot;775&quot; height=&quot;592&quot; filename=&quot;evernote_image_7.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이상태로도 원격 데스크톱 사용이 가능할수는 있으나, 원격 접속용 계정을 만들어 사용하는것이 좋습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;다시 Windows 설정으로 가서 &lt;span style=&quot;font-weight: bold;&quot;&gt;계정&lt;/span&gt;을 클릭합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/996384345F413AD218&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F996384345F413AD218&quot; width=&quot;900&quot; height=&quot;376&quot; filename=&quot;evernote_image_8.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;가족 및 다른 사용자&lt;/span&gt; -&amp;gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;이 PC에 다른 사용자 추가&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E319435F413AD405&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E319435F413AD405&quot; width=&quot;900&quot; height=&quot;568&quot; filename=&quot;evernote_image_9.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;이 사람의 로그인 정보를 가지고 있지 않습니다&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 654px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/993BB8405F413AD40D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F993BB8405F413AD40D&quot; width=&quot;654&quot; height=&quot;634&quot; filename=&quot;evernote_image_10.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Microsoft 계정 없이 사용자 추가&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 654px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99F2C1505F413AD60C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99F2C1505F413AD60C&quot; width=&quot;654&quot; height=&quot;634&quot; filename=&quot;evernote_image_11.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;계정 정보를 입력합니다. 비밀번호 힌트는 필수이므로 번거롭더라도 모두 입력합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 654px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994136335F413AD70E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F994136335F413AD70E&quot; width=&quot;654&quot; height=&quot;634&quot; filename=&quot;evernote_image_12.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;계정이 생성되었습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 468px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99394F375F413AD705&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99394F375F413AD705&quot; width=&quot;468&quot; height=&quot;255&quot; filename=&quot;evernote_image_13.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;다시 원격 데스크톱 설정으로 가셔서 앞서 만든 계정에 접속 권한을 주어야 합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994DCD405F413AD80A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F994DCD405F413AD80A&quot; width=&quot;900&quot; height=&quot;470&quot; filename=&quot;evernote_image_14.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;추가 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 440px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/997578345F413AD815&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F997578345F413AD815&quot; width=&quot;440&quot; height=&quot;379&quot; filename=&quot;evernote_image_15.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;앞서 생성한 계정명을 입력 후 &lt;span style=&quot;font-weight: bold;&quot;&gt;이름 확인&lt;/span&gt; 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 532px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FE6D3D5F413AD90A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FE6D3D5F413AD90A&quot; width=&quot;532&quot; height=&quot;285&quot; filename=&quot;evernote_image_16.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이름 확인 후 확인 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 532px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/999A043C5F413AD90C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F999A043C5F413AD90C&quot; width=&quot;532&quot; height=&quot;285&quot; filename=&quot;evernote_image_17.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;확인 클릭&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 440px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99431D4E5F413ADA09&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99431D4E5F413ADA09&quot; width=&quot;440&quot; height=&quot;379&quot; filename=&quot;evernote_image_18.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;접속하려면 접속 PC의 IP(주소)를 알아야 합니다. 네이버에 &lt;span style=&quot;font-weight: bold;&quot;&gt;외부 ip 확인&lt;/span&gt;&amp;nbsp;또는 구글에서 &lt;span style=&quot;font-weight: bold;&quot;&gt;what is my ip&lt;/span&gt; 등의 키워드로 검색하면 현재 컴퓨터로 접근 가능한 외부 IP(주소)를 알 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 667px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/992A6E4E5F413ADB02&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F992A6E4E5F413ADB02&quot; width=&quot;667&quot; height=&quot;463&quot; filename=&quot;evernote_image_19.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;접속하기&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;키보드의 &lt;span style=&quot;font-weight: bold;&quot;&gt;windows 버튼 + R&lt;/span&gt;을 눌러 &lt;span style=&quot;font-weight: bold;&quot;&gt;mstsc&lt;/span&gt;입력 후 확인&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 399px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99C4F23D5F413ADB17&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99C4F23D5F413ADB17&quot; width=&quot;399&quot; height=&quot;206&quot; filename=&quot;evernote_image_20.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;앞서 설정했던 원격 pc의 ip를 입력 후 연결&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 475px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99DBA4355F413ADB02&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99DBA4355F413ADB02&quot; width=&quot;475&quot; height=&quot;287&quot; filename=&quot;evernote_image_21.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;원격 pc에 생성했던 계정 정보를 입력합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 450px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9979224A5F413ADC0A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9979224A5F413ADC0A&quot; width=&quot;450&quot; height=&quot;336&quot; filename=&quot;1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;예 클릭하여 원격 접속합니다.&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 457px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/992447475F413ADC32&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F992447475F413ADC32&quot; width=&quot;457&quot; height=&quot;457&quot; filename=&quot;2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Windows</category>
      <category>mstsc</category>
      <category>PC</category>
      <category>windows</category>
      <category>windows10</category>
      <category>계정</category>
      <category>방법</category>
      <category>방화벽</category>
      <category>설정</category>
      <category>원격</category>
      <category>원격 데스크톱</category>
      <category>윈도우</category>
      <category>접속</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/808</guid>
      <comments>https://dololak.tistory.com/808#entry808comment</comments>
      <pubDate>Mon, 24 Aug 2020 00:01:00 +0900</pubDate>
    </item>
    <item>
      <title>[Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법</title>
      <link>https://dololak.tistory.com/809</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;여러행의 데이터를 하나의 행에 가로로 출력이 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;예를 들어 아래 사원 테이블을 보죠.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;EMPNO,&amp;nbsp;ENAME,&amp;nbsp;JOB,&amp;nbsp;DEPTNO&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;사원원호(EMPNO), 사원명(ENAME), 직책(JOB), DEPTNO(부서번호)가 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 386px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E1884A5F413B680A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E1884A5F413B680A&quot; width=&quot;386&quot; height=&quot;318&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;10번 부서에 속한 사원 목록&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;여기서 &lt;b&gt;10&lt;/b&gt;번 부서의 사원명을 구해봅니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;ENAME&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;DEPTNO&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#c10aff&quot;&gt;10&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;10번 부서에 속해있는 사원이 세명이기에 세개의 행이 출력되었습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 266px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/997799495F413B690A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F997799495F413B690A&quot; width=&quot;266&quot; height=&quot;87&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;각 부서에 속한 사원 목록&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이번에는 10번부서 뿐만 아니라 각 부서별 사원명을 출력해 보도록 하겠습니다. &lt;code&gt;GROUP BY&lt;/code&gt;를 사용할 수 있을것입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;ENAME&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;ENAME&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO,&amp;nbsp;ENAME;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 279px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9932694C5F413B6A01&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9932694C5F413B6A01&quot; width=&quot;279&quot; height=&quot;321&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;LISTAGG 함수 이용하기&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;그런데 만약 각 부서별로 속해있는 사원을 한 행으로 출력하고 싶으면 어떻게 해야 할까요? 이때 사용할 수 있는 함수가 &lt;code&gt;LISTAGG&lt;/code&gt;입니다.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 12pt;&quot;&gt;LISTAGG 사용 형식&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;LISTAGG 사용 형식은 아래와 같습니다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LISTAGG(필드명,&amp;nbsp;구분자)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WITHIN&amp;nbsp;GROUP&amp;nbsp;(&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;정렬기준필드&amp;nbsp;ASC&amp;nbsp;또는&amp;nbsp;DESC)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;테이블&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;code&gt;LISTAGG&lt;/code&gt;에 합칠 필드명과, 합칠 때 사용할 구분자를 지정해주고 &lt;code&gt;WITHIN GROUP&lt;/code&gt; 부분에 합칠때 정렬 기준을 정하면 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;code&gt;LISTAGG&lt;/code&gt; 함수를 사용해봅시다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEPTNO,&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LISTAGG(ENAME,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;',&amp;nbsp;'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WITHIN&amp;nbsp;GROUP&amp;nbsp;(&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;ENAME&amp;nbsp;DESC)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS&amp;nbsp;ENAMES&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;EMP&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;GROUP&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;BY&lt;/span&gt;&amp;nbsp;DEPTNO;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;LISTAGG&lt;/span&gt;함수는 그룹화 한 상태에서 각 그룹안에 특정 필드값을 한 행으로 출력이 가능합니다. 결과는 아래와 같습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 559px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/997761385F413B6A13&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F997761385F413B6A13&quot; width=&quot;559&quot; height=&quot;86&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;만약 사원명을 거꾸로 정렬하고 싶다면 아래와 같이 &lt;code&gt;WITHIN GROUP&lt;/code&gt;를 통해 정렬 기준을 변경할 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEPTNO,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LISTAGG(ENAME,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 213, 0); font-size: 12pt;&quot;&gt;',&amp;nbsp;'&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WITHIN&amp;nbsp;GROUP&amp;nbsp;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;ENAME&amp;nbsp;ASC)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS&amp;nbsp;ENAMES&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;EMP&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;GROUP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;DEPTNO;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;LISTAGG함수 실행 결과에서 중복 제거하기&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;직책별로 어떤 부서들이 있는지 출력해봅니다.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&amp;nbsp;DEPTNO,&amp;nbsp;ENAME&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;EMP&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&amp;nbsp;DEPTNO;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;ENAME은 참고용으로 출력한 것인데, &lt;code&gt;SALESMAN&lt;/code&gt;의 경우에는 네명의 사원이 있는데, 모두 30번 부서인것을 알 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 305px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99DC6A4C5F413B6B0E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99DC6A4C5F413B6B0E&quot; width=&quot;305&quot; height=&quot;317&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;이번에는 &lt;code&gt;GROUP BY&lt;/code&gt;를 통해 그룹화함과 동시에 &lt;code&gt;LISTAGG&lt;/code&gt;를 통해&amp;nbsp;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;한행으로 표현해 봅니다.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LISTAGG(DEPTNO,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 213, 0); font-size: 12pt;&quot;&gt;',&amp;nbsp;'&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WITHIN&amp;nbsp;GROUP&amp;nbsp;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;DEPTNO&amp;nbsp;ASC)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS&amp;nbsp;DEPTS&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;EMP&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;GROUP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;앞서 보았듯 5번행의 SALESMAN의 경우에는 네 개의 중복된 부서번호가 있습니다. 안타깝게도&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;LISTAGG&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;는 &lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;DISTINCT&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;를 사용할 수 없기 때문에 다른 방법이 필요합니다.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 280px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/995590355F413B6B06&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F995590355F413B6B06&quot; width=&quot;280&quot; height=&quot;128&quot; filename=&quot;evernote_image_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;중복 해결은 의외로 간단한데 중복이 제거된 상태의 뷰를 만들고 그 뷰를 가지고 LISTAGG를 사용하는 것 입니다.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important;overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;width:100%; margin:0;padding:0;border:none;background-color:#272727;border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px 0px;&quot;&gt;&lt;div style=&quot;margin:0;padding:0;color:#f0f0f0;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LISTAGG(DEPTNO,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 213, 0); font-size: 12pt;&quot;&gt;',&amp;nbsp;'&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WITHIN&amp;nbsp;GROUP&amp;nbsp;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;DEPTNO)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS&amp;nbsp;DEPTS&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&amp;nbsp;DEPTNO&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;EMP&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GROUP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB,&amp;nbsp;DEPTNO&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&amp;nbsp;A&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;GROUP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 51, 153); font-size: 12pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;JOB;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom;padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;서브쿼리에서 이미 DEPTNO의 중복을 제거한 상태에서&amp;nbsp;LISTAGG를 사용하기 때문에 중복이 제거되었습니다.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 244px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998EEF4A5F413B6C08&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998EEF4A5F413B6C08&quot; width=&quot;244&quot; height=&quot;129&quot; filename=&quot;evernote_image_7.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;p&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description>
      <category>데이터베이스[DB]</category>
      <category>column</category>
      <category>data</category>
      <category>LISTAGG</category>
      <category>oracle</category>
      <category>Row</category>
      <category>가로</category>
      <category>데이터</category>
      <category>여러개</category>
      <category>여러행</category>
      <category>오라클</category>
      <category>하나</category>
      <category>한꺼번에</category>
      <category>한행</category>
      <category>합치기</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/809</guid>
      <comments>https://dololak.tistory.com/809#entry809comment</comments>
      <pubDate>Sun, 23 Aug 2020 12:00:00 +0900</pubDate>
    </item>
    <item>
      <title>[DataGrip] 쿼리 실행 결과가 쿼리 에디터 창에 나타나게 하기</title>
      <link>https://dololak.tistory.com/807</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;DataGrip쿼리 실행 결과가 쿼리 에디터 창에 나타나게 하기&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;DataGript에서 쿼리 실행 결과를 하단의 결과창에 나타나는것이 아닌 에디터상에서 해당 쿼리 하단에 나타나도록 할 수 있습니다. 여러가지 쿼리가 있고 각각의 결과를 비교하거나 실행 후 여러번 왔다갔다 하면서 봐야할 때 유용한 기능입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99906A435F41099C1E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99906A435F41099C1E&quot; width=&quot;900&quot; height=&quot;375&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;왼쪽 상단의 &lt;code&gt;File&lt;/code&gt; -&amp;gt; &lt;code&gt;Settings...&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 450px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99916E3F5F41099D25&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99916E3F5F41099D25&quot; width=&quot;450&quot; height=&quot;326&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;code&gt;Database&lt;/code&gt; -&amp;gt; &lt;code&gt;General&lt;/code&gt; -&amp;gt; &lt;code&gt;Show output results in editor&lt;/code&gt;에 체크 후 설정을 저장하면 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 794px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FC17495F41099E2C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FC17495F41099E2C&quot; width=&quot;794&quot; height=&quot;479&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;결과창을 지울때는 잘 보이지 않지만 왼쪽 line number 쪽의 &lt;code&gt;x&lt;/code&gt; 버튼을 클릭하여 지울 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99B93B3D5F41099F30&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99B93B3D5F41099F30&quot; width=&quot;900&quot; height=&quot;161&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;</description>
      <category>툴 [Tool]</category>
      <category>datagrip</category>
      <category>Edit</category>
      <category>RESULT</category>
      <category>결과</category>
      <category>데이터그립</category>
      <category>설정</category>
      <category>에디터</category>
      <category>쿼리</category>
      <category>테이블</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/807</guid>
      <comments>https://dololak.tistory.com/807#entry807comment</comments>
      <pubDate>Sun, 23 Aug 2020 07:30:00 +0900</pubDate>
    </item>
    <item>
      <title>[DataGrip] 트랜잭션 commit 설정 수동/자동 변경하기</title>
      <link>https://dololak.tistory.com/806</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;DataGrip 트랜잭션 commit 설정 수동/자동 변경하기&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;DataGript에서 트랜잭션 커밋 설정은 기본적으로 수동(Manual)로 되어 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 767px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/996100455F41094823&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F996100455F41094823&quot; width=&quot;767&quot; height=&quot;484&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;커밋 설정이 수동인 경우 쿼리를 실행한 이후에는 &lt;b&gt;체크 표시&lt;/b&gt;를 누르게 되면 &lt;b&gt;커밋(commit)&lt;/b&gt;이 되며, &lt;b&gt;뒤로 감기 화살표&lt;/b&gt; 표시를 누르게 되면 &lt;b&gt;롤백(roallback)&lt;/b&gt;이 됩니다. 물론 commit과 rollback 명령어를 통해서도 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 731px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99DD13345F41094931&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99DD13345F41094931&quot; width=&quot;731&quot; height=&quot;361&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;commit 설정을 쿼리 실행한 즉시 실행되도록 자동으로 변경하는 경우 트랜잭션 커밋 설정 화살표를 누른 후 Auto로 바꿔주면 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 584px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/993F79395F41094928&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F993F79395F41094928&quot; width=&quot;584&quot; height=&quot;325&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;</description>
      <category>툴 [Tool]</category>
      <category>Auto</category>
      <category>auto commig</category>
      <category>COMMIT</category>
      <category>datagrip</category>
      <category>manual</category>
      <category>데이터그립</category>
      <category>설정</category>
      <category>수동</category>
      <category>자동</category>
      <category>커밋</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/806</guid>
      <comments>https://dololak.tistory.com/806#entry806comment</comments>
      <pubDate>Sun, 23 Aug 2020 00:01:00 +0900</pubDate>
    </item>
    <item>
      <title>[DataGrip] 쿼리 실행시 선택하지 않고 현재 커서가 있는 쿼리 바로 실행하도록 하는법</title>
      <link>https://dololak.tistory.com/805</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;DataGrip 쿼리 실행시 선택하지 않고 현재 커서가 있는 쿼리 바로 실행하도록 하는법&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;DataGrip에서 아래처럼 쿼리가 있는 쿼리문에는 네모 박스 영역이 나타나고 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 703px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994E334A5F41079927&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F994E334A5F41079927&quot; width=&quot;703&quot; height=&quot;351&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;여기서 &lt;code&gt;Ctrl + Enter&lt;/code&gt;를 단축키로 눌러 실행하게 되면 &lt;code&gt;Statements&lt;/code&gt;라는 팝업이 나타나면서 현재 쿼리 실행창에 있는 여러 쿼리들 중 어떤 쿼리를 실행할것인지 선택할 수 있게 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 610px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FE814A5F41079A28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FE814A5F41079A28&quot; width=&quot;610&quot; height=&quot;358&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;이 기능이 어떤면에서는 편리할수도 있겠지만 쿼리 실행시 곧바로 실행되지 않고 한단계를 더 거치게 되므로 설정을 꺼버리고 싶을 수 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;왼쪽 상단의 &lt;code&gt;File&lt;/code&gt; -&amp;gt; &lt;code&gt;Settings...&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 450px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E3093B5F41079B25&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E3093B5F41079B25&quot; width=&quot;450&quot; height=&quot;326&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;code&gt;Database&lt;/code&gt; -&amp;gt; &lt;code&gt;General&lt;/code&gt; -&amp;gt; When inside statement excuete 설정을 &lt;code&gt;Smallest statement&lt;/code&gt;로 바꾸고 저장하면 SQL Development처럼 쿼리가 곧바로 실행됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 760px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/999BF3485F41079C17&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F999BF3485F41079C17&quot; width=&quot;760&quot; height=&quot;388&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;</description>
      <category>툴 [Tool]</category>
      <category>datagrip</category>
      <category>SQL</category>
      <category>statements</category>
      <category>데이터그립</category>
      <category>바로실행</category>
      <category>설정</category>
      <category>실행</category>
      <category>커서</category>
      <category>쿼리</category>
      <category>팝업</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/805</guid>
      <comments>https://dololak.tistory.com/805#entry805comment</comments>
      <pubDate>Sat, 22 Aug 2020 21:02:05 +0900</pubDate>
    </item>
    <item>
      <title>[Notion] 노션 Google Docs(구글 독스) 시트 불러와 삽입하기</title>
      <link>https://dololak.tistory.com/804</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 14pt; font-weight: bold;&quot;&gt;노션 Google Docs(구글 독스) 시트 불러와 삽입하기&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;노션에 테이블이 있긴 하지만 정확히는 엑셀같은 스프레드시트같은 개념이라기 보다는 데이터베이스 개념으로 데이터를 체계적으로 관리하는 테이블의 개념입니다. 따라서 정해진 형식 안에서만 사용이 가능한데 예를 들어 무조건 title행이 있어야 하며, cell간 병합(merge)이 되지 않는 등의 제약이 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;따라서 테이블을 보기 좋게 서식을 만들어 보고 싶은 경우 노션의 기본 테이블 블록으로는 어려움이 있고 대신 아래와 같은 방법을 사용할 수 있습니다.&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;엑셀이나 google docs같은 툴로 테이블을 작성하고 캡쳐하여 이미지 형태로 관리한다.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;엑셀파일을 만들어 첨부한다.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;embed(임베드) 블록을 이용하여 google docs의 시트를 삽입한다.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;첫번째와 두번째 방법의 경우 시트의 수정이 발생하는 경우 다시 캡쳐를 뜨거나 파일을 재첨부 해야하는 번거로움이 있으나 임베드 블록을 이용하면 실시간으로 변경까지 가능하기 때문에 매우 편리합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;Google Docs&lt;/b&gt;에서 원하는 문서의 &lt;b&gt;공유&lt;/b&gt;를 &lt;b&gt;클릭&lt;/b&gt;합니다. 참고로 공유설정을 하지 않는 경우 노션웹(구글 계정으로 로그인된 상태의 크롬)에서는 잘 보이지만 노션 앱(PC버전)에서는 권한 문제로 회색 화면을 보게 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;(상단 메뉴의 파일 -&amp;gt; 공유 를 통해서도 가능합니다.)&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 856px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/993001445F35608602&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F993001445F35608602&quot; width=&quot;856&quot; height=&quot;800&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;변경&lt;/b&gt;을 클릭합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 683px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E2E0485F35608735&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E2E0485F35608735&quot; width=&quot;683&quot; height=&quot;400&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;제한 설정&lt;/b&gt;을 &lt;b&gt;링크가 있는 모든 사용자에게 공개&lt;/b&gt;로 변경합니다. 이 링크는 본인만 알고 있다면 다른 사용자가 문서에 접근할 수 없기 때문에 안심해도 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;권한&lt;/b&gt;을 뷰어, 댓글작성자, 편집자 중 &lt;b&gt;편집자&lt;/b&gt;로 해두어야 노션에서 실시간으로 편집이 가능하며, 뷰어로만 해둔 경우 노션에서는 시트를 삽입한 상태로 보기만 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 666px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99628A395F35608740&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99628A395F35608740&quot; width=&quot;666&quot; height=&quot;384&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;링크 복사를 통해 링크를 복사해 두고 완료를 눌러 공유 설정을 마칩니다.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 662px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A259405F35608803&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A259405F35608803&quot; width=&quot;662&quot; height=&quot;379&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:block; text-align:center;&quot; data-ad-layout=&quot;in-article&quot; data-ad-format=&quot;fluid&quot; data-ad-client=&quot;ca-pub-9992213562834800&quot; data-ad-slot=&quot;6927213385&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;노션을 실행하고 시트를 삽입하고 싶은 페이지에서 &lt;b&gt;/임베드(embed)&lt;/b&gt;를 삽입합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 446px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FBFB355F35608908&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FBFB355F35608908&quot; width=&quot;446&quot; height=&quot;381&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;앞서 복사해두었던 Google Docs의 링크 주소를 넣고 &lt;b&gt;링크 임베드&lt;/b&gt;를 클릭합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 720px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/995E1F495F35608902&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F995E1F495F35608902&quot; width=&quot;720&quot; height=&quot;287&quot; filename=&quot;evernote_image_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;시트가 아래와 같이 삽입되는데 처음에는 크기가 작으므로 크기를 늘려줍니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 499px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/995A4A345F35608A02&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F995A4A345F35608A02&quot; width=&quot;499&quot; height=&quot;184&quot; filename=&quot;evernote_image_7.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;아래처럼 시트가 삽입되었습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99303E465F35608B29&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99303E465F35608B29&quot; width=&quot;900&quot; height=&quot;615&quot; filename=&quot;evernote_image_8.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;만약 회색 화면으로 보이는 경우&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;b&gt;설정과 멤버&lt;/b&gt;를 클릭합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 709px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9945423F5F35608B28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9945423F5F35608B28&quot; width=&quot;709&quot; height=&quot;456&quot; filename=&quot;evernote_image_9.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;연결된 앱 -&amp;gt; Google Drive 연결을 통해 구글 계정을 연동합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A2E24E5F35608C02&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A2E24E5F35608C02&quot; width=&quot;900&quot; height=&quot;221&quot; filename=&quot;evernote_image_10.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;노션 페이지 접근시마다 문서 익명 세션이 계속 늘어나는 경우&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;다른 페이지로 이동 했다가 Google Docs가 있는 페이지로 이동시마다 노션이 해당 문서에 세션을 만들어 접근하게 되므로 익명 뷰어가 늘어나게 되는데 이는 일정시간(몇분에서 몇십분)이 지나면 자동으로 사라지므로 신경쓰지 않으셔도 됩니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9992DA3D5F35608C16&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9992DA3D5F35608C16&quot; width=&quot;900&quot; height=&quot;362&quot; filename=&quot;evernote_image_11.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>노션[Notion]</category>
      <category>Cell</category>
      <category>embed</category>
      <category>google docs</category>
      <category>Link</category>
      <category>merge</category>
      <category>Notion</category>
      <category>sheet</category>
      <category>table</category>
      <category>구글</category>
      <category>노션</category>
      <category>문서</category>
      <category>병합</category>
      <category>임베드</category>
      <category>테이블</category>
      <category>표</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/804</guid>
      <comments>https://dololak.tistory.com/804#entry804comment</comments>
      <pubDate>Fri, 14 Aug 2020 00:49:46 +0900</pubDate>
    </item>
    <item>
      <title>[Notion] 노션 토글 블록 안에서 블록 열 나누기 (옆으로 나란히!)</title>
      <link>https://dololak.tistory.com/803</link>
      <description>&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;font style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;노션 토글 블록 안에서 블록 열 나누기 (옆으로 나란히!)&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;노션에서 토글 블록 하위에 블록을 만들때 열을 나눠 옆으로 두려고 하면 토글 밖으로 나가버리는 불편함이 있습니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;아래처럼 &lt;b&gt;텍스트 블록2&lt;/b&gt;를 토글 하위에 둔채로 &lt;b&gt;블록1&lt;/b&gt;옆으로 열을 나눠 옮기려 하면 토글 블록 옆으로 가버리죠..&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 852px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/992ACC4F5F34C1EE35&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F992ACC4F5F34C1EE35&quot; width=&quot;852&quot; height=&quot;155&quot; filename=&quot;evernote_image_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;하지만 편법을 이용하면 토글 하위에서 열을 나누는것이 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;먼저 &lt;b&gt;토글&lt;/b&gt;을 만들 위치에 토글 대신 &lt;b&gt;페이지&lt;/b&gt;를 만들어 줍니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 402px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/999BCB415F34C1EE04&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F999BCB415F34C1EE04&quot; width=&quot;402&quot; height=&quot;271&quot; filename=&quot;evernote_image_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;페이지 제목은 대충 토글 제목으로 하고싶은대로 지어주고 아래처럼 텍스트1, 텍스트2 와 같이 열을 나누어 줍니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 731px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99B8C6355F34C1EF36&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99B8C6355F34C1EF36&quot; width=&quot;731&quot; height=&quot;243&quot; filename=&quot;evernote_image_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;토글을 만들려 했던 원래 페이지로 이동하고 끝에 &lt;b&gt;&lt;font style=&quot;color: rgb(227, 0, 0);&quot;&gt;...&lt;/font&gt;&lt;/b&gt;을 눌러주세요.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 726px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/990322485F34C1EF32&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F990322485F34C1EF32&quot; width=&quot;726&quot; height=&quot;102&quot; filename=&quot;evernote_image_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;그리고 이 페이지를 &lt;b&gt;토글 목록&lt;/b&gt;으로 바꿔 주면 끝입니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 747px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99BEEB4B5F34C1F034&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99BEEB4B5F34C1F034&quot; width=&quot;747&quot; height=&quot;427&quot; filename=&quot;evernote_image_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;아래처럼 토글 안에서 열 나누기가 가능합니다.&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;p style=&quot;FLOAT: none; TEXT-ALIGN: left; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 585px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9953C14A5F34C1F032&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9953C14A5F34C1F032&quot; width=&quot;585&quot; height=&quot;95&quot; filename=&quot;evernote_image_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: 맑은 고딕,sans-serif&quot;&gt;&lt;br /&gt;&lt;/div&gt;</description>
      <category>노션[Notion]</category>
      <category>Block</category>
      <category>Notion</category>
      <category>toggle</category>
      <category>나누기</category>
      <category>노션</category>
      <category>블록</category>
      <category>열</category>
      <category>옆으로</category>
      <category>위치</category>
      <category>토글</category>
      <author>도로락</author>
      <guid isPermaLink="true">https://dololak.tistory.com/803</guid>
      <comments>https://dololak.tistory.com/803#entry803comment</comments>
      <pubDate>Thu, 13 Aug 2020 13:32:01 +0900</pubDate>
    </item>
  </channel>
</rss>