Im using the followig query to get count per day ,
select count(*) as counter
from art.pub
WHERE createddate > CURRENT_DATE;
I want to adjust it and get it count per current month ,
any tips to adjust my query
In PostgreSQL try to use date_trunc
WHERE createddate >= date_trunc('month', CURRENT_DATE)
psqlis the commandline client for Postgres.mysqlis a different DBMS. Which one are you using?