How to change the code so that the samples are added together with "tb_zgrading_21. Уровень знаний > 0" and "tb_zgrading_21. Уровень знаний > 0", if they are zero in the field, then it should add 0. Here is an example of the query:

https://pastebin.com/vpr32f07

    0