From 9709f2eb8698e8266e170fd43f8b40d5f5873c10 Mon Sep 17 00:00:00 2001 From: usktea Date: Wed, 7 Dec 2022 09:07:33 +0900 Subject: [PATCH] =?UTF-8?q?20221207-=EB=8F=99=EB=AA=85=EB=8F=99=EB=AC=BC?= =?UTF-8?q?=EC=B0=BE=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit select ~, count(column) as '...' from table group by (column) having count(...) > 1 orderby (column) --- .../sql/20221207/solution.sql" | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 "\353\217\231\353\252\205\353\217\231\353\254\274\354\260\276\352\270\260/sql/20221207/solution.sql" diff --git "a/\353\217\231\353\252\205\353\217\231\353\254\274\354\260\276\352\270\260/sql/20221207/solution.sql" "b/\353\217\231\353\252\205\353\217\231\353\254\274\354\260\276\352\270\260/sql/20221207/solution.sql" new file mode 100644 index 00000000..5ed300d7 --- /dev/null +++ "b/\353\217\231\353\252\205\353\217\231\353\254\274\354\260\276\352\270\260/sql/20221207/solution.sql" @@ -0,0 +1,3 @@ +select NAME, count(name) as 'count' +from animal_ins +group by(name) having count(name) > 1 order by name;