IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

informational referential constraints

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> DB2
View previous topic :: View next topic  
Author Message
mailsaurabh.tripathi



Joined: 22 May 2008
Posts: 22
Location: hyderabad

Posted: Mon Jul 07, 2008 1:52 pm    Post subject: informational referential constraints  

what does informational referential constraints mean!
Back to top  
dick scherrer



Joined: 23 Nov 2006
Posts: 8732
Location: 221 B Baker St

Posted: Mon Jul 07, 2008 7:53 pm    Post subject:  

Hello,

Quote: An informational referential constraint is a referential constraint that is not enforced by DB2 during normal operations.
The quote is from here:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqdref1012079.htm
Back to top  
ashimer



Joined: 13 Feb 2004
Posts: 360
Location: Bangalore

Posted: Mon Jul 07, 2008 8:23 pm    Post subject:  

Lets say we create a table

CREATE TABLE EMP (EMPID INT CHECK (EMPID > 1000) NOT ENFORCED
ENABLE QUERY OPTIMIZATION)

here the check constraint is an informational one ..its used to increase performance ...now if u insert a row with empid = 100 the insert will be successful but if u say SELECT * FROM EMP WHERE EMPID = 90 this will return none as u have already set an access path where empid > 1000 ...

its just like telling the optimizer that empid will always be greater than 1000 so dont chk for anything less than that ...
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> DB2
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM