I have 3 tables with info as follows:
NOEUDS:
NOEUD TYPE_MAT NUM_COL
1 PBT 100
2 AMP
3 REP
4 PBP 120
COLINFO:
NUM_COL INTEREXTER
100 1
120 2
PB:
NOEUD FORFAIT
1 I
3
4 E
I would like to update table PB.forfait with an E when in colinfo.num_col = 2 for example.
I'm trying something like this, but still did not manage to succeed. It is a Microsoft Access database.
UPDATE pb
inner join (
SELECT noeud, type_mat, n.num_col, c.interexter
FROM noeuds AS n, colinfo AS c
WHERE ((NOEUDS.TYPE_MAT="PBT") Or (NOEUDS.TYPE_MAT="PBP"))
And (n.num_col=c.num_col)
) n on pb.noeud=n.noeud
SET (PB.FORFAIT = "E")
WHERE (n.INTEREXTER="2");
Thanks in advance.