I'm looking to find the last Common Subsequence between two strings in sql. For instance, I have this two strings "A#CDE#FGH" and "FGH#IJK#CDE", in this case the last common subsequence is FGH (the last one in the first string).
Does anyone know how to implement that in sql ? I've been trying for the last couple of hours without any breakthrough.
Thanks.