解答

172

SQL文(クエリ)

SELECT
  female_name
  , COUNT(*) AS popularity
FROM
  (
    SELECT
      SUBSTR(name, STRPOS(name, " ") + 1) AS female_name
    FROM
      sample.customers
    WHERE
      gender = 2
  )
GROUP BY
  female_name
HAVING popularity > 2

結果テーブル

結果テーブル

サポートページに戻る