Get values of one MySQL table that are not in other table
Posted: 05 Dec 2014, 15:04
Hello,
I have two tables: A and B. I need to compare their columns to get values of one table that are not in other table.
I need to get value 1.
I have two tables: A and B. I need to compare their columns to get values of one table that are not in other table.
- Table A columns : ID, table_id (key reference to table B), data
Table B columns : ID (primary key, references to table A), x, y
Code: Select all
A.table_id values = 3,3,2
B.ID values = 1,2,3