我正在尝试根据以下因素生成月度报告 对于de last运行代码构建。
我需要的信息是这样的: 循环复杂性价值 Proyect的名字 ID Proyect 文件资源的名称 日期
我的查询是这样的:我有一个问题是获取父项目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;