Here's my problem and I need some help, please. Two tables, T1 and T2. Each has three fields, SID, PID and QTY. See my example below with various field values in SID and PID.
T1:
SID, PID, QTY
s1,ps1,0
s1,p2,0
s2,p1,0
s2,p2,0
T2:
SID, PID, QTY
s1,p1,3
s1,p1,5
s1,p2,3
s1,p2,6
s2,p1,1...