Subversion Repositories DevTools

Rev

Rev 5925 | Rev 5946 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5925 dpurdie 1
-- UsedByPackageSummary.sql
2
-- Determine packages that depend on a specified package-version
3
-- Provide the package id, name and count of package-versions
5939 dpurdie 4
select pkg.pkg_name, pkg.pkg_id, count(ppv.pv_id) AS count
5
  from PACKAGE_DEPENDENCIES dep,
6
  package_versions pv,
7
  package_versions ppv,
8
  packages pkg
9
  Where dep.DPV_ID = pv.pv_id
10
  AND dep.PV_ID = ppv.pv_id
11
  AND pv.PKG_ID in ( select pkg_id from package_versions where pv_id = :PV_ID )
12
  AND NVL(pv.v_ext,'LINK') in ( select NVL(v_ext,'LINK') from package_versions where pv_id = :PV_ID )
13
  AND pkg.pkg_id = ppv.pkg_id
14
  AND (pv.pv_id = :PV_ID OR :MATCH = 0)
15
  GROUP BY pkg.pkg_name, pkg.pkg_id
16
  ORDER BY UPPER(pkg.pkg_name)
17
 
18