asof join

42 views
Skip to first unread message

Jerome

unread,
Feb 8, 2012, 10:32:22 AM2/8/12
to Kdb+ Personal Developers
I was reading http://code.kx.com/wiki/Reference/aj but cannot
understand why left join is used? Why not do t1 lj xkey `date`sym
instead?

********************************************************************************************************************************
q)a:aj[c1...cn;t1;t2]


The result is a table with records from the left join of t1 and t2.

For each record in t1, the result has one record with the items in t1,
and
if there are matching records in t2, the items of the last (in row
order) matching record are appended to those of t1
if there is no matching record in t2, the remaining columns are null

********************************************************************************************************************************

Reply all
Reply to author
Forward
0 new messages