<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Window-Function on j9m.dev</title>
    <link>https://j9m.dev/tags/window-function/</link>
    <description>Recent content in Window-Function on j9m.dev</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>ko-kr</language>
    <lastBuildDate>Wed, 27 May 2026 12:00:00 +0900</lastBuildDate>
    <atom:link href="https://j9m.dev/tags/window-function/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Window Function 다시 이해하기: row를 줄이지 않고, 현재 row의 문맥을 계산한다</title>
      <link>https://j9m.dev/posts/window-functions/</link>
      <pubDate>Wed, 27 May 2026 12:00:00 +0900</pubDate>
      <guid>https://j9m.dev/posts/window-functions/</guid>
      <description>&lt;p&gt;SQL에서 &lt;code&gt;GROUP BY&lt;/code&gt;를 쓰면 여러 row가 하나의 그룹으로 접힌다. 예를 들어 고객별 매출 합계를 구하면 고객마다 하나의 row만 나온다.&lt;/p&gt;
&lt;p&gt;반면 &lt;strong&gt;window function&lt;/strong&gt;은 원래 결과 row를 그대로 유지한다. 그리고 각 row에 대해 “이 row가 속한 문맥에서 계산한 값”을 옆에 붙여준다.&lt;/p&gt;
&lt;p&gt;Oracle 문서는 window function을 다음처럼 설명한다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A window function combines aggregate, ranking, or analytic functions with an over-clause for windowed calculations.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;즉 window function은 크게 보면 다음 구조다. (&lt;a href=&#34;https://docs.oracle.com/en/cloud/saas/analytics/26r1/dasrg/window-functions.html&#34; title=&#34;Window Functions&#34;&gt;Oracle Docs&lt;/a&gt;)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
