I am unsuccessfully trying to update one table from another. I want SQL to update the rows in Techs from the data in CourtneyTechs where the two TechNum fields are the same. Also, if a TechNum exists in CourtneyTechs that does not match one in Techs, I want a new row created in Techs. Here's what I've tried to join the two tables together:
SELECT Techs.CellNum, Techs.LongSystem, CourtneyTechs.CellNum, CourtneyTechs.System
FROM CourtneyTechs
INNER JOIN Techs
ON CourtneyTechs.TechNum=Techs.TechNum
This returns the right column data in both tables, but doesn't update Techs. Am I missing an INSERT or UPDATE somewhere?
How would I go about inserting the whole row data from CourtneyTechs into Techs where CourtneyTechs.TechNum does not exist in Techs?