Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の列を持つSQLite3のテーブルがあります[email, date]。
[email, date]
各週の行数を数えたいので、基本的にはGROUP BY週のSELECTステートメントが必要だと思います。
GROUP BY
SELECT
私はオンラインで例を探しており、そのうちのいくつかは の使用に言及していますがDATEPART、SQLite はそれを提供していないようです。
DATEPART
行を PHP に取り込んで、そこからグループ化することもできますが、これは SQL で実行できるはずだと思います。