I have a query that currently looks like:
SELECT [column a], [column b], [column c], [column d]
FROM [table]
WHERE FIND_IN_SET(2, column d)
ORDER BY [colu
1- fulltext index is not a good idea in this case because: length of the string you searching for is small (1) in this case, and this won't be found (It is configurable though, but not a good idea)
2- If this query is frequent, I suggest changing the tables' structure as follows:
In this one-to-many relationship, you can either do a join, or get the PK from table2 where condition is met, and select that ID's row from table1 Example:
Select * from table1 t1 inner join table2 t2 on t1.col_a=t2.col_a WHERE t2.value_of_sub_d=2