Skip to content
Advertisement

Replace Database field based on 2 different Table Conditions

I need to update the table based on email matching condition and need to know SQL query that can solve this problem.

I have 2 tables “old_data” and “new_data”

Here is my logical condition I need help with.

What it will do is look for all emails in the old_data table and match them with all same emails into the new_data table and replace the WHITE_NO field values to true.

Advertisement

Answer

OR

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