Thank you PH, that worked great in isolation. Now I'm trying to put it all together in one UPDATE statement. I.E.:
UPDATE Zonal
SET comm_assign2 = 27 WHERE IN (2053,4206) AND (mean_elev < 1280)
SET comm_assign2 = 26 WHERE IN (2053,4206) AND (mean_elev > 1730)
SET comm_assign2 =...
Trying to randomly assign values to records identified with an UPDATE statement. I know values for some conditions as in:
UPDATE Zonal SET comm_assign2 = 27 WHERE (ct_code = 2053 or ct_code = 4206) AND (mean_elev < 1280)
UPDATE Zonal SET comm_assign2 = 26 WHERE (ct_code = 2053 or ct_code =...
Seems straight forward; I'm entering this into a query in MS Access 2007:
UPDATE Zonal_BaseLC_ElevAspect
SET comm_assign2 = Case When mean_elev < 1280 Then 27
When mean_elev > 1730 Then 26
When mean_elev Between 1280 and 1730...
Trying to randomly assign values to records identified with an UPDATE statement. I know values for some conditions as in:
UPDATE Zonal SET comm_assign2 = 27 WHERE (ct_code = 2053 or ct_code = 4206) AND (mean_elev < 1280)
UPDATE Zonal SET comm_assign2 = 26 WHERE (ct_code = 2053 or ct_code =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.