You cannot post messages because only members can post, and you are not currently a member.
Description:
A moderated group for q and kdb+ questions from non-commercial users of the personal developer edition of kdb+.
As this is a public forum please do not publish proprietary code.
Licensed users of kdb+ should use the listbox.
|
|
|
Code snippet from example.
|
| |
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?e x);
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
|
|
Select statement - Compound column data
|
| |
Hi ,
I have defined a table pv:([] a:10 20 30; b:(`a`b;`c`d`e;`c))
Now I want to write a select statement to give the column a where each b
contains `c.
i.e the result should be
a
-
20
30
Thanks in advance
Regrds,
Saritha
|
|
[no subject]
|
| |
Hi,
I defined a coulumn dictionary "scores" as
scores:`name`iq!(`Dent`Beebleb rox`Prefect;42 98 126).
I tried to assign scores[`iq;2] :100 ;it worked fine.
But When I tried to assign using the statement scores[`iq][2] : 100; it
didn't work
Could you explain why..?
Regards
|
|
access local variables in value
|
| |
Hi,
In function f I need to use to value to evaluate dynamic strings where
some variables are embedded, however, I find it's not possible to
access the function's local variables inside the evaluation, though
global variables are ok. For example,
q)f:{a:100;value "a"}
q)f[]
{a:100;value "a"}... more »
|
|
How to save the data to disk ?
|
| |
At first , I open Kdb+ Database :
C:\q\q.exe -p 5001
Second ,
q) \l trade.q
here is the question How to save the table trade'data to disk ?
|
|
upsert in c or jdbc for a partiioned table
|
| |
How do you do an upset (append new rows in partitioned table) ? In the q command line I can do : `:/db/2009.01.02/t/ upsert (09:33:00;`:/db/sym?`ibm; 103.) How do I do this in c or jdbc ..? Thanks
|
|
|