2018.12.16 12:59 PM
2018.12.17 12:23 AM
exec gives you the query result as a list, if you know there will be only one you can run 'first exec':
y:{([]n:x?100)}each 1 2 9 10
{first exec count i from x}each y
or
`a`b`c`d!{first exec count i from x}each y
does that help at all?
2018.12.17 01:21 AM
2018.12.18 03:40 AM
q)a:([]a:10?10.;b:10?`3)q)b:([]a:3?10.;b:3?`3)q)c:([]a:12?10.;b:12?`3)q)t:`a`b`cq)t!(count value@)each ta| 10b| 3c| 12
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.