I have this query that I have to convert to Oracle SQL.
UPDATE Active_Exclusions
LEFT JOIN Active_Exclusions_Full ON
Active_Exclusions.Exclude_Reason = Active_Exclusions_Full.Exclude_Reason AND
Active_Exclusions.ViantID = Active_Exclusions_Full.ViantID
SET Active_Exclusions.ViantID = Null,
Active_Exclusions.Date_Resolved = Date,
Active_Exclusions.Resolution = "Resolved"
WHERE Active_Exclusions.ViantID Is Not Null AND
Active_Exclusions_Full.ViantID Is Null AND
Active_Exclusions.Exclude_Reason<>"PCP not in RSA County";
There's an evil join as well as what it sets are static things such as "Null" or "Resolved" and not part of another query.
I've tried various things and can't make this work. Any help?