linked dataset with each other

i have two dataset for training.One dataset is for master trainer and other for the community.Now i want to linked the one column of master trainer form to the community trainer like one table's primary key is used as foreign key in another same thing i want to do in dhis2.kindly guide me with this.
Regards:Rabbia Naz