This query get the column data fromjust two app types -- STEALTH and BOMB US . This query worked fine until I had to isolate the eventtype column to just "AR" events. There is just too much data to not isolate it. I have never seen so much data. Every other q script I see uses this format to filter columns, an equal sign with a back tick. The result set from this query is much smaller, however label of the the column in the header of the result set, instead of saying "eventtype" just has an X. Also, in stead of "AR" the column data is either a 1 or a 0 - which is probably true or false. I need the column data to say AR if it is in fact AR, not a 1 or a 0. Also, it would be reassuring if the column header said "eventtype" instead of an "x" like it does when I run the script without the (equal backtick AR) =`AR
I am using qpad to run the query
raze{[tradedate]
setdate tradedate;
`rootordid`clordid xasc
select from(
(select ltime transacttime, apptype, rootordid, eventtype=`AR, msgcategory from orders where (apptype like "STEALTH US") or apptype like "BOMB US")
)}each .utl.get_bdts[2017.12.04;2017.12.05]