🙆‍♀️

日毎のユーザー登録数をカウントするSQL

2023/03/30に公開

いつでも使えるように記載しておきます。

SELECT
    count(id) AS 新規登録ユーザー数,
    date_format(created_at, '%Y-%m-%d') as string_date
from
    users
group by
    string_date
;

Discussion