I want to update data on table using the results of subquery.
for my sql below, I want to update region number of rows on table to the region number of rows that meet the condition with region ovrd = Y & terminate date = 999999.
I have tried:
Update ACR B
Set B.region_NUMBER = A.region_NUMBER , B.region_OVRD_I ND = 'Y'
From ACR B
WHERE B.region_NUMBER NOT IN
(select A.region_NUMBER...
User Profile
Collapse
-
update sql with results subquery
-
Thanks for your suggestion.
However, I am doing this Update - subquery for unknown values off a table.
The above list of table values was an example of data.
Appreciate anymore suggestions!!!! !!!!!!!!??????? ?????? Thanks! -
update subsquery with Not = condition
I am trying to create an update subsquery for the condition:
agent region region-ovrd-ind terminate-date
123 A Y 99999999 (active)
123 A Y 99999999 (active)
123 B N 20080101 (terminate)
123 B N ...
No activity results to display
Show More
Leave a comment: