Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Is there a 'non-mandatory' relationship in DB2 8 for Z/OS?

Question posted by: BD (Guest) on July 25th, 2008 04:35 PM
I'm working with a data model which is managed in the AllFusion ERwin
tool.

Within the modeler, some of the FK relationships are 'non-mandatory' -
which is to say that for a given child value, a parent value is
optional. This is different from an optional child key, where the
child table allows null values - in this case it's the relation itself
that is optional. Strikes me as rather contrary to the principles of
RI...

From what I can find, there is no such provision in DB2. I generated
DDL from within the tool with a specific relation set as Mandatory,
and then as Optional - there was no difference in the generated RI
DDL, suggesting that this provision within the ERwin tool is
effectively ignored.

I did scour the online db2 documentation, checking as many different
books as I could find relevant references in the Master Index - and
found no reference to any provision like this.

Can anyone confirm whether such 'non-mandatory' RI exists within DB2?

Thanks,

BD
Mark A's Avatar
Mark A
Guest
n/a Posts
July 25th, 2008
08:35 PM
#2

Re: Is there a 'non-mandatory' relationship in DB2 8 for Z/OS?
"BD" <robert.drea@gmail.comwrote in message
news:1b4d23fd-fcc1-4639-bc3e-1c0eb92b1c24@y22g2000prd.googlegroups.com...
Quote:
Thanks for the response. Puts me somewhat at ease to hear a
confirmation that I wasn't missing something fundamental. Thanks!!


I am not sure if DB2 for z/OS has implemented it yet, but DB2 for LUW has
foreign keys that can be defined as (or altered to) "not enforced".



BD's Avatar
BD
Guest
n/a Posts
July 25th, 2008
09:45 PM
#3

Re: Is there a 'non-mandatory' relationship in DB2 8 for Z/OS?
On Jul 25, 1:30*pm, "Mark A" <nob...@nowhere.comwrote:
Quote:
"BD" <robert.d...@gmail.comwrote in message
>
news:1b4d23fd-fcc1-4639-bc3e-1c0eb92b1c24@y22g2000prd.googlegroups.com...
>
Quote:
Thanks for the response. Puts me somewhat at ease to hear a
confirmation that I wasn't missing something fundamental. Thanks!!

>
I am not sure if DB2 for z/OS has implemented it yet, but DB2 for LUW has
foreign keys that can be defined as (or altered to) "not enforced".


According to the documentation, yes, the z/OS variant has had that
since version 8.

It looks as if the 'Allow nulls' option within the RI relationship in
ERwin isn't having any effect on the generated DDL. Looks like all
constraints are enforced by default. I'm not 100% positive that this
particular dialog in the tool is supposed to have this particular
effect on the DDL - but so long as I know what to expect, I guess it's
okay. ;)

Thanks!

 
Not the answer you were looking for? Post your question . . .
190,182 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors