<?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: How to update table using merge from value rather than from a table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-update-table-using-merge-from-value-rather-than-from-a/m-p/19550#M13123</link>
    <description>&lt;P&gt;A source table can be a subquery so the following should give you what you're after.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MERGE INTO events
&amp;nbsp;
USING (VALUES(...)) // round brackets are required to denote a subquery
&amp;nbsp;
ON false            // an artificial merge condition
&amp;nbsp;
WHEN NOT MATCHED THEN INSERT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 16:22:59 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-25T16:22:59Z</dc:date>
    <item>
      <title>How to update table using merge from value rather than from a table</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-update-table-using-merge-from-value-rather-than-from-a/m-p/19549#M13122</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can we do an upsert directly, that is, without using a source table. I would like to give the values myself directly.&lt;/P&gt;&lt;P&gt;s there a simple way to do that for Delta tables?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:22:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-update-table-using-merge-from-value-rather-than-from-a/m-p/19549#M13122</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to update table using merge from value rather than from a table</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-update-table-using-merge-from-value-rather-than-from-a/m-p/19550#M13123</link>
      <description>&lt;P&gt;A source table can be a subquery so the following should give you what you're after.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MERGE INTO events
&amp;nbsp;
USING (VALUES(...)) // round brackets are required to denote a subquery
&amp;nbsp;
ON false            // an artificial merge condition
&amp;nbsp;
WHEN NOT MATCHED THEN INSERT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:22:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-update-table-using-merge-from-value-rather-than-from-a/m-p/19550#M13123</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:22:59Z</dc:date>
    </item>
  </channel>
</rss>

