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 8a0f568

Browse files
committed
백제완: [SQL] 특정 조건을 만족하는 물고기별 수와 최대 길이 구하기_241210
1 parent 69b322f commit 8a0f568

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SELECT
2+
COUNT(ID) `FISH_COUNT`
3+
, MAX(LENGTH) `MAX_LENGTH`
4+
, FISH_TYPE
5+
FROM
6+
FISH_INFO
7+
GROUP BY
8+
FISH_TYPE
9+
HAVING
10+
AVG(IFNULL(LENGTH, 10)) >= 33
11+
ORDER BY
12+
FISH_TYPE

0 commit comments

Comments
(0)

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