Given a text field defined as
'text1 TEXT' and a substring to search defined as 'keyword', I want to query the database and get all records whose 'text1' field has at least 1 appearance of the substring 'keyword' (using WHERE LIKE '%keyword%')
Further, I want to order my results according to the number of times the keyword has appeared in the field - such that a record whose text1 field has 4 instanses of the substring 'keyword' appears before a record whose text1 field has only one instance of the substring.
Thanks in advance!