suppose i have a table with filed1 is list of symbol 1m3m and filed2 is source bbgbbg
then how should i read
-
#[;1b] each count each field2 from table
-
{x 1 0} each filed1 from table
suppose i have a table with filed1 is list of symbol 1m3m and filed2 is source bbgbbg
then how should i read
#[;1b] each count each field2 from table
{x 1 0} each filed1 from table
count each field2 implies each item of field2 is a list its length to be counted{x 1 0} specifies the second and first items of a list, implying field1 is also nested
q)show t:(field1:(2+5?3)?:$string[til 10],'"m";field2:(1+5?5)?\:5?3) field1 field2 ------------------------------ 9m1m dmpgcegdp 4m3m9m gcedmpdmpnmogdp 8m9m ,icg 9m5m4m icggcenmonmogce 0m4m3m dmpicgicg`gce q)select {x 1 0}each field1, #[;1b] each count each field2 from t field1 field2 ------------- 1m 9m 111b 3m 4m 11111b 9m 8m ,1b 5m 9m 11111b 4m 0m 1111b
Above:
field1field2 listsAlternative expression:
q)select reverse each 2#'field1, not null field2 from t field1 field2 ------------- 1m 9m 111b 3m 4m 11111b 9m 8m ,1b 5m 9m 11111b 4m 0m 1111b
thanks for the reply what does #[;1b] mean