![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I'm trying to do the following update update holding_3 h from tiny_int_speed t set field3 = case when field3 is null and t.field_id = 3 then t.value end, field4 = case when field4 is null and t.field_id = 4 then t.value end where h.maid = t.maid and t.maid > 0 Trouble is I keep getting ambiguous replaces. This is due to all the cases in the t table where t.field_id is not 3 or not 4. |
#3
| |||
| |||
|
|
Hi All, I'm trying to do the following update update holding_3 h from tiny_int_speed t set field3 = case when field3 is null and t.field_id = 3 then t.value end, field4 = case when field4 is null and t.field_id = 4 then t.value end where h.maid = t.maid and t.maid > 0 Trouble is I keep getting ambiguous replaces. This is due to all the cases in the t table where t.field_id is not 3 or not 4. |
![]() |
| Thread Tools | |
| Display Modes | |
| |