ashishsmith
Programmer
I am using Ms Access Database but assume SQL Query Language is always same, whatever it is; here is my query:
When I try to save or execute this query, it says syntax error ('Missing Operator')
Can Somebody help me with this query? I am trying to update a table with data from another table with the same structure. What I wanted to actually do is append records from one table to another but if unique 4 fields are same than I want to overwrite it with the new data. Its just deleting old stuff if it is similiar and continue appending the old one. The above code is 1st half to update but that doesn't work.
Thank you,
Ashish Smith
Code:
UPDATE feb
SET ID=march.ID,
[Scan Group]=march.[Scan Group],
[Scan Date]=march.[Scan Date],
[Vuln ID]=march.[Vuln ID],
CVE=march.CVE,
Vulnerability=march.Vulnerability,
Summary=march.Summary,
Description=march.Description,
[Risk Level]=march.[Risk Level],
IP=march.IP,
Hostname=march.Hostname,
[O/S]=march.[O/S],
Recommendation=march.Recommendation,
[Original Date]=march.[Original Date],
Age=march.Age,
Status=march.Status,
[Target O/S]=march.[Target O/S],
[Target App]=march.[Target App]
FROM feb JOIN march ON feb.Vulnerabilities=march.Vulnerabilities
AND feb.[Risk Level] = march.[Risk Level]
AND feb.IP=march.IP
AND feb.[Original Date] = march.[Original Date];
When I try to save or execute this query, it says syntax error ('Missing Operator')
Can Somebody help me with this query? I am trying to update a table with data from another table with the same structure. What I wanted to actually do is append records from one table to another but if unique 4 fields are same than I want to overwrite it with the new data. Its just deleting old stuff if it is similiar and continue appending the old one. The above code is 1st half to update but that doesn't work.
Thank you,
Ashish Smith