I have a MySQL table of auto-generated tags, and I'm wanting to delete any shorter tags that appear within longer tags.
For example, say SELECT * FROM tags
returns
Donald Trump
Donald
Trump
Hillary Clinton
Hillary
Clinton
US Election
US
Election
I'm wanting to delete any shorter tags that appear within longer tags, so I end up with:
Donald Trump
Hillary Clinton
US Election
Is this possible?
Thank you.