+--------+---------------------+--------+------------+--------------------------------------------------------------+-------+------------+------+--------+-------+
| UserID | email | name | surname | password | place | birthDay | male | female | admin |
+--------+---------------------+--------+------------+--------------------------------------------------------------+-------+------------+------+--------+-------+
| 10 | elo@elo.pl | elo | elo | $2b$12$JPdUjCFv2mtoG3b2Dx0v1.D5089S4wUsg0aS21joLhlrzb1f4X3sW | stg | 2000-12-09 | 1 | 0 | 1 |
| 11 | kacper@wp.pl | kacper | kacper | $2b$12$mlKWmIwdmj8Q0Py36H3m1O2REqYD9VBacmmk8jiogBIfrUmKy4XpG | stg | 0000-00-00 | 1 | 0 | 0 |
| 12 | filip@galikowski.pl | filip | galikowski | $2b$12$7cxOXVs/tHytGE/j0nA/s.wdxOherYlJf18F3EA/elvUblEN99pLy | stg | 0000-00-00 | 1 | 0 | 0 |
| 13 | kacper@niemczyk.pl | kacper | niemczyk | $2b$12$YoSDXFc/t.jr5K8EFrY16OH8jom6kylCqvdFL7FfL2rdrO6hVzxCa | stg | 0000-00-00 | 1 | 0 | 0 |
+--------+---------------------+--------+------------+--------------------------------------------------------------+-------+------------+------+--------+-------+
+--------+------------+
| UserID | FollowerID |
+--------+------------+
| 12 | 13 |
| 10 | 13 |
+--------+------------+
I need to delete a given row with the email of the observer and email of the observed person.
For example.
I got email: "kacper@niemczyk.pl" and "elo@elo.pl" and I have to remove these people from the follow table. In this example delete row with UserID = 10 and FollowerID = 13
I know that it is possible to find an ID via email and then delete it but I also know that it can be done faster with the help of relations but I do not know how.