代码语言:javascript复制
select round(sum(tiv_2016),2) tiv_2016 from
(select *,count(*) over(partition by tiv_2015) a1,count(*) over(partition by lat,lon) a2 from insurance)
as a
where a1>1 and a2=1