Having a problem getting an update query to work. What's really odd is that I can do this in Access, but not in Enterprise Manager. The query analyzer parses it correctly, but I receive the error "Invalid column name 'split'" when attempting to run with SQL.
Here's the query:
I am attempting to update prod from stage. I need the WHERE statement because the staging table (which probably isn't a true staging table) contains items including "vdn", "vector", and "split." Some splits and vectors share the same stage.num_value, so I want to make sure I'm only looking for splits in the staging table.
Thanks,
Paul
Here's the query:
Code:
update prod
set
prod.strSkill_CMS_Descr = stage.str_item_name
from tbl_Dictionary_Skills prod inner join stage_cc_cms_synonyms stage
on
prod.numSkill_Number = stage.num_value
and prod.numSite_fk = stage.numSite_fk
where stage.str_item_type = "split"
I am attempting to update prod from stage. I need the WHERE statement because the staging table (which probably isn't a true staging table) contains items including "vdn", "vector", and "split." Some splits and vectors share the same stage.num_value, so I want to make sure I'm only looking for splits in the staging table.
Thanks,
Paul