Skip to content
Advertisement

In access/SQL how do I make only the null values in a column equal to value in another column?

enter image description here

I want to make only the blank cells in ATTRIB_VALUE equal to the values in ATTRIB_VALUE_NUM_9.

Advertisement

Answer

Something like this:

UPDATE *TABLE-NAME-HERE*

SET ATTRIB_VALUE=ATTRIB_VALUE_NUM_9

WHERE ATTRIB_VALUE IS NULL OR ATTRIB_VALUE =''

I’m not sure what your table name is based on your post, but I think that’ll get you what you need.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement