Code snippet from example.

30 views
Skip to first unread message

Krishna Kumar

unread,
Jun 1, 2012, 2:45:51 PM6/1/12
to personal...@googlegroups.com
Hi All,
What does the following code do?
{@[;`sym;`p#]`sym xasc x}each`trade`quote;

where
trade:([]sym:n?`sym;time:09:30:00.0+til n;price:n?2.3e;size:n?9;ex:n?ex);
quote:([]sym:n?`sym;time:09:30:00.0+til
n;bid:n?2.3e;ask:n?2.3e;bsize:n?9;asize:n?9;ex:n?ex);

Thanks,
Raman

Nathan Perrem

unread,
Jun 1, 2012, 2:47:11 PM6/1/12
to personal...@googlegroups.com
It sorts the 2 tables in ascending order on `sym and then applies the parted attribute to the sym column of each in memory table.


--
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.


Reply all
Reply to author
Forward
0 new messages