SQL View Name:dt_linked_crs
SQL View Number:4679
Group:Dovetail
Base Table:bug
Description:Bugs associated as duplicates or replicates
Flags:VIEW_OPTIMIZED 
Baseline/Custom:Custom

Fields:

Field NameCommon TypeDatabase TypeGeneric Field IDArray SizeDefaultFlagsComment
bug_objidLONGint   USER_DEFINED  
id_numberCHARvarchar 32 USER_DEFINED  
link_typeCHARvarchar 30 USER_DEFINED  

SQL:


select b.objid as bug_objid, m.id_number, 'Duplicate Master' from table_bug b
inner join table_bug m on b.duplicate_bug2bug = m.objid
union all
select b.objid, m.id_number, 'Duplicate' from table_bug b, table_bug m
where b.objid = m.duplicate_bug2bug
union all
select b.objid, m.id_number, 'Replicate' from table_bug b
inner join table_bug m on b.cr_replicate2cr_master = m.objid
union all
select b.objid, m.id_number, 'Replicate Master' from table_bug b, table_bug m
where b.objid = m.cr_replicate2cr_master
My Recent Objects
dt_linked_crs