SELECT t."Lead Source", strftime('%Y-%m', t."Created Time") AS Month, COUNT(*) AS "Count" FROM Leads AS t WHERE (date(date(t."Created Time"), 'start of year') = date('now', 'localtime', 'start of year')) GROUP BY t."Lead Source", strftime('%Y-%m', t."Created Time") ORDER BY t."Lead Source"
Skyvia Query allows you to run SQL queries against databases and cloud applications from web browser. Access and manage your data from anywhere, build reports, arrange your data in the most informative way and simplify your decision-making process easily!