SELECT DISTINCT ID_ITEM
FROM TABLENAME
(Attr = 'Length' AND Value = 6.00000)
OR (Attr = 'DIAM' OR Value = 0.250000)
OR (Attr = 'TIP' AND Value = 'FLAT')
select id_item from (select distinct * from 表)a
where (Attr = Length and Value = 6.00000) or (Attr = DIAM and Value = 0.250000) or (Attr = TIP and Value = FLAT)
group by id_item
having count(1)>=3