我正在尝试根据以下因素生成月度报告,以获取上次运行的代码构建。
我需要的信息是:圈复杂度值名称项目ID项目名称文件资源日期
我的查询是这个:我在获取父项目 ID 的子文件时遇到问题
select
pr.name, proj.id, snap.ROOT_PROJECT_ID, proj.path, proj.language, proj.name NAME_OF_PROJ,
met.description Description, meas.value,
to_date('01-Ene-1970','dd-mm-yyyy hh24:mi:ss')+(SUBSTR(SNAP.created_at,0,10)/60/60/24) created,
to_date('01-Ene-1970','dd-mm-yyyy hh24:mi:ss')+(SUBSTR(SNAP.BUILD_DATE,0,10)/60/60/24) build_date,
snap.QUALIFIER
from
snapshots snap,
project_measures meas,
metrics met,
projects proj,
projects pr
where
--snap.scope = 'FIL' and
to_date('01-Ene-1970','dd-mm-yyyy hh24:mi:ss')+(SUBSTR(SNAP.BUILD_DATE,0,10)/60/60/24)
between to_date('01-04-2016','dd-mm-yyyy') and to_date('30-04-2016','dd-mm-yyyy')
and snap.id = MEAS.SNAPSHOT_ID
and MEAS.METRIC_ID = MET.ID
and met.id = 10019
and snap.project_id = proj.id
and PR.ID = snap.ROOT_PROJECT_ID;