I'm having trouble understand JOINs. I have a list of people, and a list of attacks like this:
SELECT * FROM people;
+------+--------+
| id | name |
+------+--------+
| 1 | johnny |
| 2 | pete |
| 3 | sally |
| 4 | paul |
| 5 | jen |
| 6 | alan |
+------+--------+
SELECT * FROM attacks;
+------------+----------+
| attackerId | victimId |
+------------+----------+
| 1 | 2 | (johnny attacked pete)
| 1 | 4 | (johnny attacked paul)
| 1 | 6 | (johnny attacked alan)
| 3 | 5 | (sally attacked jen)
+------------+----------+
Could anybody help me figure out what command gets people not attacked by johnny like this?
+-------+
| name |
+-------+
| sally |
| jen |
+-------+
Many thanks!