I am working with MySQL version 5. I have two tables structured as shown below.
Table1
From To Time TravelTime
Table2
From To Time CongestionTime
I would like to achieve the following output.
If From, To and Time are equal in both the tables, then assign TravelTime = CongestionTime
Table2 contains only a subset of the From | To | Time combinations available in Table1.
From is mysql reserved word. If you don’t want to escape it, change column names “From” to “TimeFrom”.