dates values
------------
1 10
2 20
3 30
4 40
5 50
1 -1
2 -2
5 -3
4 -4
2 -5
dates| values
-----| --------
1 | 10 -1
2 | 20 -2 -5
3 | ,30
4 | 40 -4
5 | 50 -3
But, I do not see how I can work with the above result. There is literally nothing I can do with that table where a date has multiple data points (under values column)
Please help, perhaps I am overcomplicating the process due to my temporary unfamiliarity with KDB+.
Regards,
VA.
Create tab1/tab2:
q)tab1:([]date:2016.02 2016.04 2016.07 2016.10m;data1:2.3 2 2.1 1.9)
q)tab2:([]date:2016.02m+til 12;data1:50.3 51.1 49.8 48 49.9 54.1 49.9 53.1 52.1 49.1 55.8 100)
q)`date`data1`data2 xcols (`date`data2 xcol tab2)lj `date xkey tab1
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
books
http://code.kx.com/wiki/QforMortals3http://code.kx.com/wiki/QforMortals3
https://kx.com/2015/03/25/scalable-maintainable-kdb/
online docs
http://code.kx.com/wiki/JB:KdbplusForMortals/contents
http://code.kx.com/wiki/Tutorials
http://code.kx.com/wiki/JB:QforMortals2/contents
http://code.kx.com/wiki/QforMortals3
________________________________
From: personal-kdbplus@googlegroups.com [personal-kdbplus@googlegroups.com] on behalf of QL Zhuo [zhuo...@gmail.com]
Sent: 20 October 2016 05:29
Subject: Re: [personal kdb+] Re: Merge and match two tables with dates in each
Sorry, but I can't help asking what is "the book"? I'm a newbie too.
--
This email address (zhuo.dev<at>gmail.com<http://gmail.com>) is only for development affairs, e.g. mail list, please mail to zhuo<at>hexoasis.com<http://hexoasis.com> or zhuoql<at>zoho.com<http://zoho.com> for other purpose.
ZHUO QL (KDr2), http://kdr2.com
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com<mailto:personal-kdbplus+unsubscribe@googlegroups.com>.
To post to this group, send email to personal-kdbplus@googlegroups.com<mailto:personal-kdbplus@googlegroups.com>.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com<mailto:personal-kdbplus+unsubscribe@googlegroups.com>.
To post to this group, send email to personal-kdbplus@googlegroups.com<mailto:personal-kdbplus@googlegroups.com>.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.