table_create Tags TABLE_HASH_KEY ShortText [[0,0.0,0.0],true] table_create Products TABLE_PAT_KEY ShortText [[0,0.0,0.0],true] table_create Purchases TABLE_NO_KEY [[0,0.0,0.0],true] column_create Purchases product COLUMN_SCALAR Products [[0,0.0,0.0],true] column_create Purchases tags COLUMN_VECTOR Tags [[0,0.0,0.0],true] column_create Products purchases COLUMN_INDEX Purchases product [[0,0.0,0.0],true] load --table Products [ {"_key": "apple"}, {"_key": "banana"}, {"_key": "cacao"} ] [[0,0.0,0.0],3] load --table Purchases [ {"product": "apple", "tags": ["man", "one"]}, {"product": "banana", "tags": ["man", "many"]}, {"product": "cacao", "tags": ["woman"]}, {"product": "apple", "tags": ["child", "many"]} ] [[0,0.0,0.0],4] select Products --drilldowns[tag].keys purchases.tags [ [ 0, 0.0, 0.0 ], [ [ [ 3 ], [ [ "_id", "UInt32" ], [ "_key", "ShortText" ], [ "purchases", "UInt32" ] ], [ 1, "apple", 4 ], [ 2, "banana", 1 ], [ 3, "cacao", 1 ] ], { "tag": [ [ 5 ], [ [ "_key", "ShortText" ], [ "_nsubrecs", "Int32" ] ], [ "man", 2 ], [ "one", 1 ], [ "child", 1 ], [ "many", 2 ], [ "woman", 1 ] ] } ] ]