skip to Main Content

Aliases in MySQL and do maths

I need to workout the effectiveness of a user to display in a report, i complied the following statement SELECT COUNT(`call_id`) AS logged FROM `tbl_calls` WHERE `user_id_attended_by` = 24 AND YEAR(`date_ack_by_tech`) = YEAR(CURRENT_DATE - INTERVAL 1 YEAR) AND MONTH(`date_ack_by_tech`) =…

VIEW QUESTION
Back To Top
Search