home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / datatl25.zip / DCTDSGN.Z / EWSQDMTI.QRY < prev    next >
Text File  |  1997-09-11  |  1KB  |  30 lines

  1. #NAME#
  2. DA_DB2390TableIncomplete
  3. #DESCRIPTION#
  4. The incomplete DB2/390 table query returns the names of DB2/390 Tables which are incomplete.  During the DataAtlas populate function an incomplete table is created when an unknown table is referenced by a foreign key in the table being populated.  
  5. To complete the table defintion you must populate it.
  6.  
  7. View type: DAQDB2390Table
  8.  
  9. Modifications:
  10. None.
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. SELECT
  17.   t.db2390Table,
  18.   kd.primaryKeyDependentDB2390Table as dependentTable                                                 
  19. FROM OUTER
  20.   DAQDB2390Table t,
  21.   (t.usesTableDefinition) td,
  22.   (td.hasKeyDefinition) kd                                               
  23. WHERE
  24.   t.usesTableDefinition is null OR               
  25.   EXISTS (SELECT 1
  26.           FROM (t.usesTableDefinition) tc
  27.           WHERE tc.columnName IS NULL or tc.columnName = '')  
  28. ORDER BY
  29.   t.db2390Table;                                                                          
  30.