select a.rollupType, b.name as Type, a.distSrcID, c.dsCallLetters, c.dsCallLettersView,c.dsName,
a.distSrcIDPrimary, a.callLettersPrimary
,'xxx' as callLettersViewPrimary, 'xxx' as dsNamePrimary, isActive
from DistRollupTy b, DistRollup a
left outer join DistributionSrc c on a.distSrcID = c.distributionSourceStationID
where a.rollupType = b.rollupType
union
select a.rollupType, b.name as Type, a.distSrcID
, 'xxx' as dsCallLetters, 'xxx' as dsCallLettersView,'xxx' as dsName,
a.distSrcIDPrimary, a.callLettersPrimary
,d.dsCallLettersView as callLettersViewPrimary, d.dsName as dsNamePrimary
, isActive
from DistRollupTy b, DistRollup a
left outer join DistributionSrc d on a.distSrcIDPrimary = d.distributionSourceStationID
where a.rollupType = b.rollupType