SELECT TIV_2015 FROM insuranceGROUP BY TIV_2015HAVING COUNT(*)>1;
criteria2: 地理位置重复
SELECT LAT, LONFROM insuranceGROUP BY LAT, LONHAVING COUNT(*)=1;
同时满足上面两个criteria即可
SELECT ROUND(SUM(TIV_2016), 2) AS TIV_2016FROM insuranceWHERE TIV_2015 IN ( SELECT TIV_2015 FROM insurance GROUP BY TIV_2015 HAVING COUNT(*)>1) AND (LAT, LON) IN ( SELECT LAT, LON FROM insurance GROUP BY LAT, LON HAVING COUNT(*)=1);