I have 2 tables fullInfo and fundInfo. fullInfo is a full data set of donations to a non-profit. fundInfo is a list of unique fund subgroups with accompanying id numbers. I’m trying to insert the fund id number from fundInfo into fullInfo in a column fundId that exists but currently has NULL values.
fullInfo:
id funddesc amount fundId
002 GENERAL 25.00 NULL
044 MAINT 50.00 NULL
122 TRAVEL 75.00 NULL
... ... ... ...
fundInfo:
id funddesc
01 MAINT
02 TRAVEL
03 GENERAL
... ...
update fullInfo
set fullInfo.fundId = fundInfo.id
where fullInfo.funddesc = fundInfo.funddesc;
This code is not working. Any suggestions?
1 Answer