行がすべての列で本当に異なる場合は、SELECT DISTINCTを使用できます。 。
SQL Serverを使用しているため、row_number()も使用できます。 ThreatIdごとに1行を返します :
select ThreatId,
ThreatTopClient,
...
from
(
select ThreatId,
ThreatTopClient,
...,
row_number() over(partition by ThreatId order by ThreatMLSeq) rn
from xThreatCA
where ThreatMLSeq <> N''
and ID <> 0
) d
where rn = 1
order by ThreatMLSeq