I have table1
+------+----------------+
| ppl | action |
+------+----------------+
| p2 | Run |
| p1 | Jump |
| p3 | Walk |
+------+----------------+
and table2
+------+----------------+
| ppl | action |
+------+----------------+
| p1 | Eat |
| p2 | Look |
| p3 | Walk |
+------+----------------+
First I would like to get two tables: difference. The difference table will be any ppl and action pair in table2 but NOT in table 1.
+------+----------------+
| ppl | action |
+------+----------------+
| p1 | Eat |
| p2 | Look |
+------+----------------+
What are the sql commands to achieve there? Some people point me to the previous post: Return row only if value doesn't exist
Unfortunately, this post only discuss filtering based on one column. I struggled to generalize it for two columns since the where clause does not take two columns at the same time. So please bare with me and walk me through the filtering on a two column logical AND solution.
Thanks!