SELECT query on string field that treat dash char “-” as a space
I have a table in which a VARCHAR(255) field could have "-" dahs char used as a blank space because it reports chemical compounds retrieved from external DBs. The same compounds could have been written without dash char(s) and a blank space instead of them or a subset of them. For instance, the compound "2-hydroxy-propionic acid" could have been written a4
- "2-hydroxy propionic acid"
- "2 hydroxy-propionic acid"
- "2 hydroxy propionic acid"
All of them are proper writings and they refer to the same compound. Is there an elegant way to SELECT the stored field "2-hydroxy-propionic acid" if the search string is one of the other 3? That is just an example, the dash char could be just one or even more than 2.