楼主是不是想要查出cableName, bairPress这两个字段组合起来不重复的数据啊???
select cableName, bairPress, count(1)
from currentcabledata
where to_number(bairPress) > 1580
and bureauname = '玉桥营维 '
group by cableName, bairPress
having count(1) = 1
楼住的意思是group by 吗?
select cableName,bairPress,count(*) from currentcabledata
where to_number(bairPress)> 1580 and bureauname= '玉桥营维 '
group by cableName,bairPress