<?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 Morten Ankerstjerne</title>
    <link>https://mortenankerstjerne.com/tags/window-functions/</link>
    <description>Recent content in Window Functions on Morten Ankerstjerne</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 18 Jul 2025 11:04:47 +0200</lastBuildDate>
    <atom:link href="https://mortenankerstjerne.com/tags/window-functions/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Repeat last known value</title>
      <link>https://mortenankerstjerne.com/posts/2025/repeat-last-known-value/</link>
      <pubDate>Fri, 18 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://mortenankerstjerne.com/posts/2025/repeat-last-known-value/</guid>
      <description>&lt;p&gt;&lt;em&gt;Demo scripts &lt;a href=&#34;#demo-scripts&#34;&gt;below&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; This technique is by no means something I have come up with, I&amp;rsquo;ve just needed it enough times that I figured I might as well put it into my own words, for future reference.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;background&#34;&gt;Background&lt;/h2&gt;&#xA;&lt;p&gt;Suppose you have a collection of time series data, recording some status or other measurement at a point in time.&lt;/p&gt;&#xA;&lt;p&gt;In an OLTP system we probably don&amp;rsquo;t want to repeat the same value every time we take a measurement, or we may only record changes made to a ledger when they occur.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
