Below procedure will help you in finding out all the column values from a table which matches the possible combinations of the words from the given input. Modify the select query written at the bottom of sql-procedure with your table name and column name as required.