I am working on an application that takes a topic and match it with existing topics in a column and return the percentage similarity of the topics. I am using power builder and sybase. I have a string variable(topic) that stores the topic. I need help on how to match the variable with the field "restopic" in "tblres".The query to return the percentage similarity between "topic" and all the items in "restopic" and order the result by highest percentage similarity.
Topic= Data supplied from user inputs
tblres
ID RES_TOPIC
001 The challenges of teaching large classes
002 The cause of high rate of accidents on a particular road
003 The impact of computers in teaching
I want data supplied from user input to be matched against RES_TOPIC to determine percentage similarity