title: SQL query--String Permutations
body: <p>I am trying to create a query using a db on OpenOffice where a string is entered in the query, and all permutations of the string are searched in the database and the matches are displayed.  My database has fields for a word and its definition, so if I am looking for GOOD I will get its definition as well as the definition for DOG.  </p>