G
Guest
Hello,
I have tblWholesaler and tblCities. Both tables have City, Priority,
Interested, and ID. I would like to:
1) If tblWholsaler.City can be found in tblCities.City then update
tblWholsaler.Interested = Yes, else no.
2) If Interested = yes then Update tblWholesaler.Priority to be the
tblCities.Priority.
So, in english, I want to check if the city in tblWholesaler is of
interested and, if so, mark tblWholesaler.Interest = yes and set the priority
for that tblWholesaler.Priority as defined in tblCities.Priority.
Here is as far as I got:
UPDATE tblWholesaler INNER JOIN tblCities ON tblWholesaler.City =
tblCities.City SET tblWholesaler.Interest = True;
Thanks
I have tblWholesaler and tblCities. Both tables have City, Priority,
Interested, and ID. I would like to:
1) If tblWholsaler.City can be found in tblCities.City then update
tblWholsaler.Interested = Yes, else no.
2) If Interested = yes then Update tblWholesaler.Priority to be the
tblCities.Priority.
So, in english, I want to check if the city in tblWholesaler is of
interested and, if so, mark tblWholesaler.Interest = yes and set the priority
for that tblWholesaler.Priority as defined in tblCities.Priority.
Here is as far as I got:
UPDATE tblWholesaler INNER JOIN tblCities ON tblWholesaler.City =
tblCities.City SET tblWholesaler.Interest = True;
Thanks