Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 20c82c1

Browse files
committed
백제완: [SQL] Investments in 2016_241219
1 parent eaa828c commit 20c82c1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎SQL/15주차/Investments_in_2016.sql‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SELECT
2+
ROUND(SUM(tiv_2016), 2) `tiv_2016`
3+
FROM
4+
Insurance
5+
WHERE
6+
tiv_2015 IN (
7+
SELECT
8+
tiv_2015
9+
FROM
10+
Insurance
11+
GROUP BY
12+
tiv_2015
13+
HAVING
14+
COUNT(pid) > 1
15+
)
16+
AND (lat, lon) IN (
17+
SELECT
18+
lat
19+
,lon
20+
FROM
21+
Insurance
22+
GROUP BY
23+
lat, lon
24+
HAVING
25+
COUNT(pid) = 1
26+
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /