g0501_0600.s0585_investments_in_2016.script.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
The newest version!
# Write your MySQL query statement below
# #Medium #Database #2023_05_18_Time_729_ms_(99.22%)_Space_0B_(100.00%)
select round(sum(tiv_2016),2) tiv_2016 from insurance i1
where tiv_2015 in (select tiv_2015 from insurance i2
where i1.pid != i2.pid)
and (lat, lon) not in (select lat, lon from insurance i3
where i3.pid != i1.pid)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy