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

  1. #NAME#
  2. DA_TableDefinitionGlossary
  3. #DESCRIPTION#
  4. The table definition glossary query returns the names of the entity and data model which were the design source for the shareable table definition identified in the WHERE clause.
  5.  
  6. View type:  DAQTableDefinition
  7.  
  8. Modifications: 
  9. Change the search criteria of the tableDefinition using the = (equals), IN or LIKE elements in the WHERE clause of each subselect.
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. SELECT DISTINCT
  17.   t.tableDefinition,
  18.   t.inRelationalDesign..relationalDesign,
  19. -- entity and data model which are the source of the table
  20.   t.entityName,
  21.   t.dataModel,
  22.   p.lastUpdate
  23. FROM OUTER
  24.   DAQTableDefinition t,
  25.   PartView p
  26. WHERE
  27.   t.tableDefinition LIKE '<>%' AND
  28.   p.baseName=t.tableDefinition AND
  29.   p.partType='DSRTableDefinition'
  30. ORDER BY
  31.   1;
  32.