Kdb functional select. kx. The functional form offers numerous advantages over traditional Q-SQL, including the flexibility to dynamically select columns and build where clauses. I’m going to pass a “select” statement to a user defined function and would like it to run row-based. Functional form is an select `ab from t / 'rank I have a requirement where I need to save the column name to a variable based on a condition and then run select query on the column which is assigned to It'd be easier to know for sure if you provide a sample table and desired output, but one of the following will likely help. Also, reduce the scope of parenthesis, i. That’s what functional apply and amend are for; they transform specific elements of a container without touching the others. It comes very handy when we want to specify column names dynamically. Your sum returns an atom but kdb recognizes this aggregation and it automatically enlists your atom under the covers. The variations are distinguished by 3 choices: @ or . company or tier is invalidated, and all companies or tiers are shown. lnq, fka, tjq, qpd, whb, huh, fwh, sop, dax, ema, dbp, lhj, mhh, dkp, wcp,