I'm cleaning up some data and have several rows that contain repetitive words within a string. For instance, "concrete-concrete" or "art-art". I could just do use a case when with a like to find these, however there are so many of these repetitions that it will take too long to find all of them. Is there a SQL function for finding duplicative patterns like this?
Here's some sample data:
category
- concrete-concrete
- art-art
- concrete-art
- music-classical
- music-music-classical