Use SELECT DISTINCT
instead of SELECT
SELECT DISTINCT ThreatID, ThreatTopClient,
'#' + CONVERT(NVARCHAR(2), ThreatMLSeq) + ' -- ' + ThreatML AS CAMLPad,
ThreatMLSeq, ThreatML, ThratDetailClient, ThreatArea,
ThreatFinalInherentRisk, ThreatTier21, ThreatControls, AuditID
FROM xThreatCA
WHERE (ThreatMLSeq <> N'') AND (ID <>0)
ORDER BY dbo.xThreatCA.ThreatMLSeq
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…