I have three tables
Table 1
--------
key1 value
-----------
1 FALSE
2 FALSE
3 FALSE
Table 2
--------
key1 key2 value
------------------
1 A (null)
1 B (null)
1 C (null)
2 A (null)
Table 3
--------
key2 value
A 90
B 29
C 11
Using a trigger, when the value in Table 1 gets updated to TRUE, Table 2 values gets populated by Table 3 values.
IF value is TRUE for Key1=1 in Table 1 THEN Table 2 should look like
key1 key2 value
------------------
1 A 90
1 B 29
1 C 121
2 A (null)
Any solutions?
Thanks
Table 1
--------
key1 value
-----------
1 FALSE
2 FALSE
3 FALSE
Table 2
--------
key1 key2 value
------------------
1 A (null)
1 B (null)
1 C (null)
2 A (null)
Table 3
--------
key2 value
A 90
B 29
C 11
Using a trigger, when the value in Table 1 gets updated to TRUE, Table 2 values gets populated by Table 3 values.
IF value is TRUE for Key1=1 in Table 1 THEN Table 2 should look like
key1 key2 value
------------------
1 A 90
1 B 29
1 C 121
2 A (null)
Any solutions?
Thanks