I have a server with MySQL 5.7 data base. I need to join 3 tables first one contains ids, to others contains list of values for ids. I want to have sum of values by ids from