If I have a table like this called myTable:
| Var1 | Var2 | Var3 | Var4 | Var5 |
+-------+------+------+------+------+--------+
| Name1 | 1.1 | 1.2 | 0 | 03 | 201805 |
| Name1 | 1.1 | 1.2 | 0 | 03 | 201803 |
| Name2 | 2.1 | 2.2 | 0 | 03 | 202001 |
| Name3 | 3.1 | 3.2 | 3 | 01 | 202002 |
How would I write a query that overwrite/updates all Name1 rows with the Var1 and Var2 values from Name2 given that the rest of the variables matches and only do it on the condition that Var5 is in a desired time interval, like 201805 -> 202001?