As David mentioned, you can't reference iq2 before you create it. If
your where clause isn't too wieldy, you can just include that in the
qsql query to create column iq2: q)select name,iq2:iq%100 from t where
1
The error thrown is passed as the first parameter to the function.
https://code.kx.com/q/ref/apply/#trap. To allow parameters, you need to
have a function of rank 2 or greater, you can then create a projection
of a rank 1 function by eliding the firs...
This is most easily done in two parts and then defaulting the rest to
welcome: q)T:update newCol:`hi from T where a=`F,b`F,c>d q)T:update`welcome^newCol from T q)T a
b c d newCol ------------------ F 10 9 10 welcome R 20 21 22 welcome You
may find th...
Hi JP, this is just the underlying k implementation of idesc:
https://code.kx.com/q/ref/desc/#idesc q)a:0 1 1 0 -1 0 1 -1 0 0 q)idesc
k){$[0h>@x;'`rank;>x]} q)idesc[a]~(>)a 1b q)\ >a 1 2 6 0 3 5 8 9 4 7 The
brackets allow q to interpret this, but the...