<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Window Functions on Nalar</title>
    <link>https://nalar.dev/tags/window-functions/</link>
    <description>Recent content in Window Functions on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 03 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/window-functions/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Use SQL Window Functions Without Losing Row Detail</title>
      <link>https://nalar.dev/use-sql-window-functions-without-losing-row-detail/</link>
      <pubDate>Thu, 03 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/use-sql-window-functions-without-losing-row-detail/</guid>
      <description>&lt;p&gt;Many SQL problems ask for a calculation across several rows while still returning each original row.&lt;/p&gt;&#xA;&lt;p&gt;For example, you may need to show every order together with the customer&amp;rsquo;s running spend, rank products inside each category, or compare today&amp;rsquo;s measurement with the previous one. A regular aggregate such as &lt;code&gt;SUM()&lt;/code&gt; or &lt;code&gt;AVG()&lt;/code&gt; can calculate across rows, but a &lt;code&gt;GROUP BY&lt;/code&gt; query usually collapses those rows into one result row per group.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
