I am trying to use the FECH function to retrieve data from the Kx database. In the retrieved data, the primary key field "date" is not present. I used the following code to retrieve the data:
% A Q server hosting a TAQ database
c = kx('scsettldap09.bankofamerica.com',50007)% The "by" clause makes "date" be a primary key
% This field is missing from the returned structure
r1 = fetch(c,'select n:count i by date from trade where date>2007.08.01,sym=`FLIR')
Best Answer