Im a bit new to sql and for my project I need to do some Database sorting and filtering:
Let's assume my database looks like this:
==========================================
| id | email | name
==========================================
| 1 | [email protected] | John
| 2 | [email protected] | Peter
| 3 | [email protected] | Steward
| 4 | [email protected] | Ethan
| 5 | [email protected] | Bob
| 6 | [email protected] | Patrick
==========================================
What should I do to only have the last column with the same email te be returned:
==========================================
| id | email | name
==========================================
| 3 | [email protected] | Steward
| 5 | [email protected] | Bob
| 6 | [email protected] | Patrick
==========================================
Thanks in advance!
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments