<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Support for MERGE statement in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239186#M1822</link>
    <description>&lt;P&gt;Hi, thanks for your reply, but I know that it occurs to use an update and an insert statements when merge statement isn't available.&lt;/P&gt;&lt;P&gt;The focus of the post is about the merge statement ... having a such feature is very very important.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 17:15:40 GMT</pubDate>
    <dc:creator>pmscorca</dc:creator>
    <dc:date>2024-10-11T17:15:40Z</dc:date>
    <item>
      <title>Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239067#M1820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;reading the documentation I've noticed the absence of the MERGE statement.&lt;/P&gt;&lt;P&gt;Does Fabric support this more important statement? Why not?&lt;/P&gt;&lt;P&gt;A such statement is very very important to work with a data warehouse!&lt;/P&gt;&lt;P&gt;In SQL Server I've used this statement, in Azure Synapse Analytics I've used this statement,&lt;/P&gt;&lt;P&gt;but I cannot find it in Fabric.&lt;/P&gt;&lt;P&gt;I hope that this feature could be released as soon as possible.&lt;/P&gt;&lt;P&gt;Many many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 14:57:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239067#M1820</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-10-11T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239176#M1821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right, it seems ot be a current limitation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations" target="_blank"&gt;T-SQL surface area - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you might be able to use another syntax than the merge statement, e.g. the code below:&lt;/P&gt;
&lt;PRE&gt;MERGE INTO target_table AS target
USING source_table AS source
ON target.id = source.id
WHEN MATCHED THEN
    UPDATE SET 
        target.col1 = source.col1,
        target.col2 = source.col2
WHEN NOT MATCHED THEN
    INSERT (id, col1, col2)
    VALUES (source.id, source.col1, source.col2);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;translates to:&lt;/P&gt;
&lt;PRE&gt;UPDATE target_table
SET 
    target_table.col1 = source_table.col1,
    target_table.col2 = source_table.col2
FROM source_table
WHERE target_table.id = source_table.id; 

INSERT INTO target_table (id, col1, col2)
SELECT source_table.id, source_table.col1, source_table.col2
FROM source_table
LEFT JOIN target_table
ON source_table.id = target_table.id
WHERE target_table.id IS NULL; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know, if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 17:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239176#M1821</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2024-10-11T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239186#M1822</link>
      <description>&lt;P&gt;Hi, thanks for your reply, but I know that it occurs to use an update and an insert statements when merge statement isn't available.&lt;/P&gt;&lt;P&gt;The focus of the post is about the merge statement ... having a such feature is very very important.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 17:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239186#M1822</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-10-11T17:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239189#M1823</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree, it is a handy syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems, MS is already working on it though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=3fda58a2-1241-ee11-a81c-6045bdbdeab0" target="_blank"&gt;Microsoft Idea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 17:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4239189#M1823</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2024-10-11T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4837661#M3804</link>
      <description>&lt;P&gt;Merge statment has now been made available in Fabric in September 2025&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/september-2025-fabric-feature-summary?ft=All#post-28106-_Toc208595368" target="_blank"&gt;Fabric September 2025 Feature Summary | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-gb/sql/t-sql/statements/merge-transact-sql?view=fabric" target="_blank"&gt;MERGE (Transact-SQL) - SQL Server | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 09:06:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4837661#M3804</guid>
      <dc:creator>toribiolmSXP</dc:creator>
      <dc:date>2025-09-29T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Support for MERGE statement</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4891853#M3972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="484400" data-lia-user-login="toribiolmSXP" class="lia-mention lia-mention-user"&gt;toribiolmSXP&lt;/a&gt;&amp;nbsp;Merge is in preview not in GA.&lt;/P&gt;&lt;P&gt;When will Merge feature be released in GA?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Support-for-MERGE-statement/m-p/4891853#M3972</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2025-12-03T14:53:29Z</dc:date>
    </item>
  </channel>
</rss>

