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

  1. #NAME#
  2. DA_DB2udbViewGlossary
  3. #DESCRIPTION#
  4. The DB2 UDB view glossary query returns select clause which specifies the view and the names of the columns referenced by the view identified in the "WHERE" clause. 
  5.  
  6. View type:  DAQDB2csView
  7.  
  8. Modifications:
  9. Change the search criteria of the view name using the = (equals), IN or LIKE elements in the SQL WHERE clause.
  10. #MODIFIED#
  11.  
  12. #VERSION#
  13.  
  14. #SQL STATEMENT#
  15. --DA_DB2udbViewGlossary
  16. SELECT DISTINCT
  17.   v.db2csView,
  18.   v."schema",
  19.   v.inRelationalSystem..relationalSystem,
  20.   v.inPhysicalDesign..db2csPhysicalDesign,
  21.   vd.viewDefinition,
  22.   vd.viewComment,
  23.   vd.columnName,
  24.   vd.columnComment,
  25.   vd.checkOption,
  26.   v."select" as selectClause,
  27.   p.lastUpdate
  28. FROM 
  29.   DAQDB2csView v,
  30.   (v.usesViewDefinition) vd,
  31.   PartView p
  32. WHERE
  33.   v.db2csView LIKE '<>%'  AND
  34.   v.db2csView=p.baseName
  35. ORDER BY
  36.   v.db2csView;
  37.