I was looking into documentation while creating tables but so far example didn't mentioned ,how to add foreign key while creating table. Also I check documentation for Alter statement too, but same goes with this too
CREATE TABLE Brand (
BrandId int,
Name string,
AddressId int,
SuperAdminDetails string,
CONSTRAINT FK_Address FOREIGN KEY (AddressId) REFERENCES Address(AddressId) ,
INDEX Brand_idx CLUSTERED (BrandId ASC)
PARTITIONED BY HASH (BrandId)
);
// ALTER TABLE Brand ADD CONSTRAINT FK_Address FOREIGN KEY (AddressId) REFERENCES Address(AddressId) ;
Error While Executing Above USQL