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

  1. #NAME#
  2. DA_DB2390ForeignKey
  3. #DESCRIPTION#
  4. The DB2390 foreign keys impact analysis query returns the names of DB2/390 Tables with foreign keys which are constrained by the DB2/390 Table identified in the SQL WHERE clause.
  5.  
  6. View type: DAQDB2390Table
  7.  
  8. Modifications:
  9. Change the search criteria of the DB2/390 table using the = (equals), IN or LIKE elements in the SQL WHERE clause.
  10. #MODIFIED#
  11.  
  12. #VERSION#
  13.  
  14. #SQL STATEMENT#
  15. SELECT
  16.   t.db2390Table,
  17.   td.tableDefinition,
  18.   kd.primaryKeyDependentDB2390Table as dependentTable
  19. FROM
  20.   DAQDB2390Table t,
  21.   (t.usesTableDefinition) td,
  22.   (td.hasKeyDefinition) kd
  23. WHERE
  24.   t.db2390Table like '<>%' 
  25. ORDER BY
  26.   t.db2390Table,
  27.   kd.primaryKeyDependentDB2390Table;
  28.