Mysql queries filtered by date
Posted: Mon Mar 19, 2012 1:21 am
Hi all,
New to Vicidial and want to do some custom reporting.
Use to Asterisk but cant seem to get the reports filtered by date as I want to.
I would like to report from the call_log tables only from the 1 March 2012 to 7 March 2012 for instance. Per todays date and from to current date etc.
mysql -D asterisk -e "select * from call_log where date(calldate) > '2012-03-01' order by calldate;
Tried changing date(calldate) to column headers inside tables and filter like that, but its just dumping the whole tables from beginning to end.
Not sure if this belongs on General or support
Any help would be appresiated.
Rudi
New to Vicidial and want to do some custom reporting.
Use to Asterisk but cant seem to get the reports filtered by date as I want to.
I would like to report from the call_log tables only from the 1 March 2012 to 7 March 2012 for instance. Per todays date and from to current date etc.
mysql -D asterisk -e "select * from call_log where date(calldate) > '2012-03-01' order by calldate;
Tried changing date(calldate) to column headers inside tables and filter like that, but its just dumping the whole tables from beginning to end.
Not sure if this belongs on General or support
Any help would be appresiated.
Rudi