Hi all. what is the easiest way to combine 2 colum...
# suiteql
j
Hi all. what is the easiest way to combine 2 columns and a string in between. I see that Concat is supported, but not Concat_ws. In the example i want to add a customer name like the following "first name" + ", " + "last name". using "&" or "+" fails. thanks
s
I've resorted to a nested concat. In my usage: CONCAT(CONCAT(itemsku, ' - '), locationname)
j
@Stephanie Hughes that works! I tried something similar that failed, but i'll take it! thanks!!!
👍 1
j
You can use
||
to concatenate
👍 1
e.g.
SELECT firstname || ', ' || lastname
much more readable IMO
j
@jen Agreed, thanks!