Many to many relationship
-
- Posts: 3
- Joined: Mon Jan 04, 2010 3:48 pm
- Skillset: COBO,JCL,DB2,REXX
- Referer: FRIEND
- Location: New Delhi
Many to many relationship
Is many to many relationship is possible in IDMs? Please can anybody explain this
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Many to many relationship
Hello and welcome to the forum,
Well, yes. . . So far, i've not seen any database system that prevents many-many relationships.
Are you familiar with the many-many concept?
It is not clear what you want explained. If you show an example of what you are working with/looking for, someone may be able to post a more useful reply.
Well, yes. . . So far, i've not seen any database system that prevents many-many relationships.
Are you familiar with the many-many concept?
It is not clear what you want explained. If you show an example of what you are working with/looking for, someone may be able to post a more useful reply.
Hope this helps,
d.sch.
d.sch.
-
- Posts: 3
- Joined: Mon Jan 04, 2010 3:48 pm
- Skillset: COBO,JCL,DB2,REXX
- Referer: FRIEND
- Location: New Delhi
Re: Many to many relationship
Thanks, In IDMS Set represent one to many relationship in the same way can set support many to many relationship, this question was asked to me in one of the interview.
-
- Posts: 1
- Joined: Sat Feb 27, 2010 1:56 am
- Skillset: REXX COBOL JCL IDMS
- Referer: surfing
Re: Many to many relationship
In IDMS... Junction records are used to create many to many relationships.
For instance a many to many beteween recs TEACHER and STUDENT may be
created by using a junction record named TCHSTU
Each TEACHER rec would be connected to many TCHSTU recs ( a 1 to many )
Each STUDENT rec would be connected to many TCHSTU recs ( a 1 to many)
combined this construct creates a many to many
TEACHER------->TCHSTU<---------STUDENT
For instance a many to many beteween recs TEACHER and STUDENT may be
created by using a junction record named TCHSTU
Each TEACHER rec would be connected to many TCHSTU recs ( a 1 to many )
Each STUDENT rec would be connected to many TCHSTU recs ( a 1 to many)
combined this construct creates a many to many
TEACHER------->TCHSTU<---------STUDENT
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Many to many relationship
Hello and welcome to the forum,
Good to have a new IDMSer with us
Good to have a new IDMSer with us

Hope this helps,
d.sch.
d.sch.