Hi,
I am using the below query to generate some important fields for the defects. I would also want to know the release in which the defect was detected, the release cycle in which the defect was detected and also the release in which the defects are planned to be fixed( i.e the Target release id & Target release name).
Manytimes the 'Target Release' is not filled, so I also want to source the fields where the 'Target Release' is not filled in.
But when I use the query, many defects are repeated a number of times. I am seeing a lot of duplicate rows for the defects. I am unable to fix this issue.
Can you please check & help me to solve the issue in my query.
Thanks for your help.
Regards,
Bharath S
SELECT a.BG_BUG_ID as 'Defect-Id',
a.BG_SEVERITY as 'Severity',
a.BG_STATUS as 'Status',
a.BG_SUMMARY as 'Summary',
a.BG_DETECTION_DATE as 'Detected on Date',
a.BG_USER_05 as 'Resolution',
a.BG_USER_01 as'Product',
a.BG_DETECTED_IN_REL as 'Detected Release Id',
b.REL_NAME as 'Detected in Release',
d.RCYC_NAME as 'Detected in Cycle',
a.BG_DETECTION_VERSION as 'Detected in Version',
a.BG_TARGET_REL as 'Target Release Id',
c.REL_NAME as 'Target Release'
from BUG a,RELEASES b,RELEASES c,RELEASE_CYCLES d
where (a.BG_DETECTED_IN_REL=b.REL_ID AND (a.BG_TARGET_REL=c.REL_ID OR a.BG_TARGET_REL IS NULL) AND a.BG_DETECTED_IN_RCYC=d.RCYC_ID AND d.RCYC_PARENT_ID=b.REL_ID AND b.REL_NAME = 'Client 4.0')
ORDER BY a.BG_BUG_ID