SELECT service.name, operator.fio AS op_fio, client.fio AS cl_fio, MAX(done.day) FROM done JOIN operator ON done.id_oper = operator.id JOIN service ON done.id_serv = service.id JOIN client ON done.id_client = client.id GROUP BY service.name; it is not clear why the cells (underlined in red) having a connection (join) with the marked red in the table "done" are highlighted, and the cells that have a connection (join) with the marked green are not displayed. How to solve this problem, what am I doing wrong?
