Many to many relationship

Programming support for IDMS(Integrated Database Management System), IDD, IDMS-DC & ADS/Online
Akii
Posts: 3
Joined: Mon Jan 04, 2010 3:48 pm
Skillset: COBO,JCL,DB2,REXX
Referer: FRIEND
Location: New Delhi

Many to many relationship

Postby Akii » Mon Jan 04, 2010 4:00 pm

Is many to many relationship is possible in IDMs? Please can anybody explain this

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: Many to many relationship

Postby dick scherrer » Tue Jan 05, 2010 1:23 am

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.
Hope this helps,
d.sch.

Akii
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

Postby Akii » Tue Jan 05, 2010 12:49 pm

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.

BradfordDobbins
Posts: 1
Joined: Sat Feb 27, 2010 1:56 am
Skillset: REXX COBOL JCL IDMS
Referer: surfing

Re: Many to many relationship

Postby BradfordDobbins » Sat Feb 27, 2010 2:27 am

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

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: Many to many relationship

Postby dick scherrer » Sat Feb 27, 2010 3:18 am

Hello and welcome to the forum,

Good to have a new IDMSer with us :)
Hope this helps,
d.sch.