Friends, there is such a request
SELECT `count_lb` + `count_pr` AS `kek` FROM disciplain WHERE `group`='.$value['id'] We fold everything up perfectly, but if in one of the tables the table is NULL , then it shows accordingly NULL . Please tell IFNULL how in my case correctly apply the IFNULL function to check empty fields.
IFNULL(count_lb, 0) + IFNULL(count_pr, 0)- teran