select sum(i1.TIV_2016) as TIV_2016 from insurance i1 where
from insurance i2
where i1.PID<>i2.PID and i1.TIV_2015 =i2.TIV_2015
and (i1.LAT<>i2.LAT or i1.LON<>i2.LON))
Could you explain why this similar code would fail?
Investments in 2016
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.