本文主要是介绍sql42(585 2016年的投资),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
代码:
# Write your MySQL query statement belowselect round(sum(t.tiv_2016),2) as tiv_2016
from(select distinct(t1.pid),t1.tiv_2016from Insurance t1,Insurance t2where t1.tiv_2015=t2.tiv_2015 and t1.pid!=t2.pid and t1.pid not in(select t2.pid as pidfrom Insurance t1,Insurance t2where t1.pid!=t2.pid and t1.lat=t2.lat and t1.lon=t2.lon)
) t
这篇关于sql42(585 2016年的投资)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!