[문제]
[MySQL]
SELECT ROUND(SUM(tiv_2016), 2) AS tiv_2016
FROM Insurance
WHERE tiv_2015 IN (SELECT tiv_2015
FROM Insurance
GROUP BY tiv_2015
HAVING COUNT(*) > 1)
AND (lat, lon) IN (SELECT DISTINCT lat, lon
FROM Insurance
GROUP BY lat, lon
HAVING COUNT(*) = 1)
'SQL > LeetCode' 카테고리의 다른 글
| [LeetCode] 595. Big Countries (0) | 2025.02.18 |
|---|---|
| [LeetCode] 586. Customer Placing the Largest Number of Orders (0) | 2025.02.18 |
| [LeetCode] 584. Find Customer Referee (0) | 2025.02.18 |
| [LeetCode] 577. Employee Bonus (0) | 2025.02.18 |
| [LeetCode] 570. Managers with at Least 5 Direct Reports (0) | 2025.02.17 |
