cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Not able to perform update in delta table in databricks using 3 tables

Upendra_Kumar
New Contributor

Hi,

I am able to perform merge from 2 tables but have requirement to update table based on 3 tables like following query.

update a

set a.name=b.name

from table1 a

inner join table2 b on a.id=b.id

inner join table3 c on a.id=c.id

Thanks in advance..

3 REPLIES 3

Cami
Contributor III

it can be a workaround ( it just crossed my mind) but you can try to join those tables in a data frame and after that select columns for A table with new value for a.name column.  Save data frame and as a temporary table and make merge with A table. 

Anonymous
Not applicable

Hi @upendra kumar sharmaโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Anonymous
Not applicable

Hi @upendra kumar sharmaโ€‹ 

Help us build a vibrant and resourceful community by recognizing and highlighting insightful contributions. Mark the best answers and show your appreciation!

Thanks and Regards

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group