Let's pretend I have the schema
CREATE TABLE Account (
AccountId BYTES(MAX),
Foo STRING(1024)
) PRIMARY KEY (AccountId);"
CREATE TABLE Customer (
CustomerId BYTES(MAX),
Bar STRING(1024)
) PRIMARY KEY (CustomerId);"
And I create a new table:
CREATE TABLE Order (
AccountId BYTES(MAX),
CustomerId BYTES(MAX),
Baz STRING(1024)
) PRIMARY KEY (AccountId, CustomerId);"
That I'd like to INTERLEAVE
with Account
and Customer
. How can one do this? I'm familiar with how to INTERLEAVE
with one table, when building a hierarchy, but not sure how to achieve this with two tables.