Hi,
I have a problem with a trigger. Three tables are invovled in the process.
The tables above are the source tables and shall be used to populate Table c. Table c should contain values from the tables above as seen below.
I want to make a select statement in the trigger:
and populate table c with the rows from the select statement.
Is this possible? I can't figure out how to deal with the fact that the select statement will return more than one row.
Any one out there that could give some tips on this?
Thanks a million,
yodaa
I have a problem with a trigger. Three tables are invovled in the process.
Code:
Table a
pID, aID
Table b
pID, bID, bNum, bType
Code:
Table c
pID, aID, bID, bNum
Code:
select a.pID, a.aID, b.bID, b.bNum from a, b where b.Type == 'Type A' and a.aID not in (select aID from c)
Is this possible? I can't figure out how to deal with the fact that the select statement will return more than one row.
Any one out there that could give some tips on this?
Thanks a million,
yodaa