I imported ASCII file to in-memory table. And now I’m trying to perform a select, but it does not work because column names contains spaces and colons.
select avg $"All: Net Profit" by $“Mon: distance_l” from smth
The issue is that standard select queries can’t deal with the column names having spaces.
You could use a functional select but the easiest thing to do is rename the column names of the table using the keyword xcol.
Example usage can be seen on the Kx reference page: http://code.kx.com/q/ref/dictsandtables/#xcol
The easiest approach would probably be to rename the columns of your table to remove the problem characters. You can do this using the .Q.id function: http://code.kx.com/wiki/DotQ/DotQDotid