3

As you can see, I have three columns with the important features for me (a, b, c, d, e, f) - no matter of size. I want to copy them into new column "name". The problem is when I try to copy with case, or if, or anything else it doesn't work. For example:

enter image description here

If I want to copy "name1" to "name", I will get 'a', 'b' and NULL, then after that I try to copy "name 2" I get 'c' and 'd', but also NULL at the place where it should be 'a' and 'b'.

1
  • 1
    You should research the COALESCE SQL function.
    – Vince
    Commented Jan 12, 2022 at 22:54

2 Answers 2

3

Use this expression that utilizes the concat() function:

concat("name1", "name2", "name3")

enter image description here

3

Another solution (as was mentioned by @Vince) is to use the coalesce() function, like:

coalesce("test1", "test2")

example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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