-
Linked Columns and overloads of $ ! ?
I am trying to figure out WHICH overloads of $ ! ? are used in foreign keys and linked columns syntax</div>
Foreign Keys
kt$localColumn
Question 1. Is $ for enum ?
Question 2. kt as a table type is undocumented (but implied) right ?
LinkedColumn
otherTable!otherTable.otherCol?localColumn
Q3. Is ? doing a find
Q4. Is ! doing a dict (as in keyed table is a dict too) way OR “linking” which is undocumented still
Q doc still has some gaps which is why I have come up with these inferences after playing around with the code in the links below for a while. So ideally please gives “yes”/”no” or a big tutorial 😉
Links
https://code.kx.com/q/kb/linking-columns/#splayed-tables
https://code.kx.com/q/wp/foreign-keys/#foreign-keys
code.kx.com
Linking columns | Database | kdb+ and q documentation - kdb+ and q documentation
A link column is similar to a foreign-key column – it provides linkage between the values of a column in a table to the values in a column in a second table
Sorry, there were no replies found.
Log in to reply.