[personal kdb+] Concat column in table

837 views
Skip to first unread message

Adrian

unread,
Apr 20, 2010, 5:58:50 AM4/20/10
to Kdb+ Personal Developers
Hi all,

I have some question of string concat function. Normally, q use , to
join element up. But how can we apply it to a select statement?

For example: I have a table called name like this:

FirstName LastName
--------------------------------
David Chan
Peter Chan
Daivd Lee
Joe Chan


how can I join the two columns in a q select statement?
wholeName
---------------------
DavidChan
PeterChan
DaivdLee
JoeChan

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To post to this group, send email to personal...@googlegroups.com.
To unsubscribe from this group, send email to personal-kdbpl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.

Manish Patel

unread,
Apr 20, 2010, 6:05:36 AM4/20/10
to personal...@googlegroups.com
Assuming strings in the cols,

select fulln:(firstname,'lastname) from table


Sent using BlackBerry® from Orange

Jyoti Ranjan Sahoo

unread,
Feb 18, 2015, 2:16:06 PM2/18/15
to personal...@googlegroups.com
Please use this query and let me know abt the result:
 
select wholeName : "" sv/: flip string(FirstName;LastName) from name

Reply all
Reply to author
Forward
0 new messages