Good morning, I'm in need of some help with some tables in php. I have two tables from which I need to compare data, the tables are in a database in MySQL. The scenario is as follows: I have table1 with columns A, B, C, D and table2 with columns A, B, C, I need to compare the columns A, B, C and if they are the same I return the value of column D, where D is equal to x the total value of records should go to 1/3 of a graph and if D is different from xo the total value of records should go to another 1/3 of the graph, the other 1/3 of the graph will be populated with another information that I already have. Can anybody help me? Thank you.
Tabela 1
-------------
A | B | C | D
...
Tabela 2
-------------
A | B | C