Skip to content
Advertisement

Oracle – update data in first table with rows from second table

How to update ‘date_from’ (t1) using ‘modfied’ (t2) when it is like 20/07/20.

So in this case in t1 id’s 1 and 2 are to be updated and id 3 stays.

Table 1:

Table 2:

Advertisement

Answer

You know in advance which value needs to be assigned, so you just need to filter which rows should be updated. exists seems sufficient:

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