<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sql on pretiosusdata</title><link>https://pretiosusdata.com/tags/sql/</link><description>Recent content in Sql on pretiosusdata</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 24 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://pretiosusdata.com/tags/sql/index.xml" rel="self" type="application/rss+xml"/><item><title>Redshift trusts the keys you declare</title><link>https://pretiosusdata.com/notes/redshift-trusts-the-keys-you-declare/</link><pubDate>Tue, 24 Nov 2026 00:00:00 +0000</pubDate><guid>https://pretiosusdata.com/notes/redshift-trusts-the-keys-you-declare/</guid><description>&lt;p&gt;Suppose a data engineer refreshes a customer dimension each morning so finance can report revenue by customer segment. In this hypothetical pipeline, the source export starts including historical customer versions. The load succeeds, but the dimension now contains two rows for some customer IDs.&lt;/p&gt;&#10;&lt;p&gt;The table declares &lt;code&gt;customer_id&lt;/code&gt; as its primary key. That declaration will not reject those duplicates in Amazon Redshift. I would make validation of the completed candidate dataset a condition of publishing the refresh.&lt;/p&gt;</description></item></channel></rss>