2

enter image description here

I would like to copy names from field 'Uch_1' to 'Uchastok' but not all. Names in 'Uch_1' should be copied and replace only where in 'Uchastok' cells are 'NULL' but if not, it remains without changes.

Any ideas what code should I use in Field Calculator?

1 Answer 1

4

there are a few options

First

Select all cells with value 'NULL'

Open field calculator

  • You will see the first option checked: 'only update xxx selected features'. Keep it checked!!
  • check 'update existing field'
  • select 'Uchastok'

In the expression panel add "Uch_1"

Press 'OK'

Second

  • check 'update existing field'
  • select 'Uchastok'

Add following code:

case

when "Uchastok" is null then "Uch_1"

else "Uchastok"

end

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.