Thanks for the help!
I would like to explain what I need.
I have an existing platform that will read the stock data from
individual files and the data access layer was design so that they
will treat each stock symbol as individual table.
The existing API allow the access / modify the data in the file by the
index.
e.g. IBM[0] will return the first OHLC entry of IBM.
I would like to migrate the stock data from file to KDB. However, I
would like to use 1 big table to store Trade data for all stocks
instead of having individual files for each stock.
I also want to reuse the existing API so that the data of individual
stock can be access by row index.
I can create a VIEW on KDB table but the VIEW is not modifiable.
Thus, I am thinking to have a nested table so that I can look up the
individual table via the stock code in KDB e.g:
q) Trade[`IBM]
will return:
q) 2003.03.23T09:10:35.000000;10.0;100
2003.03.23T09:10:36.000000;10.2;400
2003.03.23T09:10:37.000000;9.9;100
2003.03.23T09:10:38.000000;10.1;200
2003.03.23T09:10:39.000000;10.2;500
And Trade[`IBM][0]
will return 2003.03.23T09:10:35.000000;10.0;100
Is it possible to do so?