1
0
www.mikescher.com/www/extern/egg/db_queryyear.sql

10 lines
327 B
MySQL
Raw Permalink Normal View History

2019-12-28 14:00:11 +01:00
SELECT commitdate AS commitdate, COUNT(*) as count FROM
(
SELECT
[hash] AS hash, min([author_email]) AS mail1, min([committer_email]) AS mail2, date(min([date])) AS commitdate
FROM COMMITS
GROUP BY hash
HAVING (strftime('%Y', commitdate) = :year AND (/*{INDETITY_COND}*/))
)
GROUP BY commitdate
ORDER BY commitdate