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

11 lines
398 B
MySQL
Raw Normal View History

2019-12-28 14:00:11 +01:00
SELECT commitdate AS commitdate, COUNT(*) as count FROM
(
SELECT
2020-03-05 18:20:27 +01:00
commits.[hash] AS hash, min([author_email]) AS mail1, min([committer_email]) AS mail2, date(min([date])) AS commitdate
FROM commits
LEFT JOIN metadata ON commits.hash = metadata.hash
GROUP BY commits.[hash]
2019-12-28 14:00:11 +01:00
HAVING (strftime('%Y', commitdate) = :year AND (/*{INDETITY_COND}*/))
)
GROUP BY commitdate
ORDER BY commitdate