To me, the problem looks more like an issue with your database schema design.
If you normalised out the "other" column into its own key/value table then your problem would go away and your code would be nice and simple :)
In reply to Re: SQL queries from weird data
by RichardK
in thread SQL queries from weird data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |