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

  1. #NAME#
  2. DA_DataStructureGlossary
  3. #DESCRIPTION#
  4. The Data Structure glossary analysis query returns the names of the shareable data structures and shareable data elements used by the shareable data structure specified in the WHERE clauses.
  5.  
  6. View type:  DataAtlasDataStructure
  7.  
  8. Modifications:
  9. The query uses a UNION to provide a more compact result table. To change the search criteria, change the data structure name using the = (equals), IN or LIKE elements in both the SQL WHERE clauses.
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. --DA_DataStructureGlossary
  17. SELECT DISTINCT
  18.   s.dataStructure,
  19.   'Data Structure' as partType,
  20.   s.usesDataStructure as containsPart,
  21.   p.lastUpdate,
  22.   p.addDate
  23. FROM
  24.   DataAtlasDataStructure s,
  25.   PartView p,
  26.   PartView d
  27. WHERE
  28.   s.dataStructure LIKE '<>%' AND
  29.   (s.dataStructure=p.baseName AND
  30.   p.partType='DSDataStructure')    AND
  31.   (s.usesDataStructure=d.baseName AND
  32.   d.partType='DSDataStructure')
  33. UNION
  34. SELECT DISTINCT
  35.   s.dataStructure,
  36.   'Data Element' as partType,
  37.   s.usesDataElement as containsPart,
  38.   p.lastUpdate,
  39.   p.addDate
  40. FROM
  41.   DataAtlasDataStructure s,
  42.   PartView p,
  43.   PartView d
  44. WHERE
  45.   s.dataStructure LIKE '<>%' AND
  46.   (s.dataStructure=p.baseName AND
  47.   p.partType='DSDataStructure')    AND
  48.   (s.usesDataElement=d.baseName AND
  49.   d.partType='DSDataElement')
  50. ORDER BY
  51.   1,2,3;
  52.