Skip to content
Advertisement

BigQuery – SQL UPDATE and JOIN

I have two tables. Table1 = dalio which is an event list with select customers. Table2 = master_list which is a master customer list from all past events.

dalio has an “id” column that needs to be filled in with customer numbers, which can be pulled from master_list column called “customer_no”. All rows in the “id” column are currently blank. I only want the customer numbers where the “fullname” column in dalio & “name” column in master_list are an exact match.

This is what I have in BigQuery so far:

Portion of each table below–
dalio (table1): enter image description here
master_list (table2): enter image description here

Advertisement

Answer

t1-dalio:

enter image description here

t2-masterlist:

enter image description here

You can try the query below:

Result t1-dalio:

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement