Skip to main content
Level 3
Jun 24, 2025 9:03 AM UTC
Solved

1-many linking doubt

Hi @parthasarathy ,

I have created two schemas having a one-to-many relationship with a common key deptid in both schemas.

I have added the following code in the Student table:

 

<element integrity="normal" label="Department" name="department" revIntegrity="normal"

         revLabel="Students in Department" revLink="student" target="kbd:department"

         type="link">

  <join xpath-dst="deptid" xpath-src="deptid"/>

</element>

 

I have the following questions:

1.Is above code correct?

2. Is the above code added in the Student table correct?

3. Do I need to add code in the Department table as well? If yes, what will be the correct code?

ParthaSarathy
ParthaSarathyAccepted solution
Community Advisor
Jun 24, 2025 9:16 AM UTC

Hi @kd1-1 ,

Yes the above syntax is correct.  The script should be written in Student table and no need to write separate code in department schema.

~  ParthaSarathy S

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
Jun 24, 2025 9:16 AM UTC

Hi @kd1-1 ,

Yes the above syntax is correct.  The script should be written in Student table and no need to write separate code in department schema.

Translate
~  ParthaSarathy S