nondrinker
Programmer
Hello,
I am trying to update the TITLE_ID field in the AR3 table,
where the AR3.NAME = AR4.NAME
AND AR3.CITY = AR4.CITY.
Here is my query:
**************************************
UPDATE AR3
SET TITLE_ID = AR4.TITLEID
FROM AR3 INNER JOIN AR4 ON AR3.NAME = AR4.NAME
WHERE AR3.CITY = AR4.CITY
***************************************
This query is updating the TITLE_ID field in the AR3 table where the NAME values are same, even though the City values are different.
I am trying to update the TITLE_ID field only where the NAME values are same AND and CITY values are same also, not just one of them
Thank you.
I am trying to update the TITLE_ID field in the AR3 table,
where the AR3.NAME = AR4.NAME
AND AR3.CITY = AR4.CITY.
Here is my query:
**************************************
UPDATE AR3
SET TITLE_ID = AR4.TITLEID
FROM AR3 INNER JOIN AR4 ON AR3.NAME = AR4.NAME
WHERE AR3.CITY = AR4.CITY
***************************************
This query is updating the TITLE_ID field in the AR3 table where the NAME values are same, even though the City values are different.
I am trying to update the TITLE_ID field only where the NAME values are same AND and CITY values are same also, not just one of them
Thank you.