How to create a trigger that automatically creates a specific tape ids based on the number of quantity of tapes inserted. The trigger name should be trig_auto_spid.
This means that in table tapes, the BatDog has QTy=3 so in table Tape_Spec_Id TapesId T1=TS1, TS2, TS3....
I hope I made myself clear to you…
Here’s the flow:
Table:tapes Qty:3
equivalent in
Table:Tape_Spec_ID
TSpecID TS1, TS2, TS3…
Here are my two tables:
Tapes
----------------------
TapesID Title Qty
T1 BatDog 3
T2 UnderCat 2
T3 IronMouse 1
T4 Boys Zone 1
T5 RoboCat 1
Tape_Specific_ID
----------------
TapesID TSpecID
T1 TS1
T1 TS2
T1 TS3
T2 TS4
T2 TS5
T3 TS6
T4 TS7
T5 TS8
I really don’t have any idea what to do, any idea?
Try this: