Multiple Left Join with sum
问题 I'm trying to display in a table (with data tables plugin) informations with sum from 3 tables using Left Join in sql query. I succeeded to edit server-side query and display correct datas with first jointure between two tables (t1=...budget & t2=..budget_changes) using the following query : $year=date('Y'); $sQuery = "SELECT SQL_CALC_FOUND_ROWS ".str_replace(" , ", " ", implode(", ", $aColumns)).", IFNULL(SUM(t2.change_amount),0) AS operation_changes, (t1.operation_BP+IFNULL(SUM(t2.change