我有一列包含以下行
"XX - Make a determination from receipt of request within 15 calendar days"
"Make a determination from receipt of request or necessary info within 2 business days"
"YYYYYYY - Make a determination from receipt of request within 72 calendar hours"
"ZZZZZZZZZZZ - Make a determination from receipt of request within 30 calendar days"
以及具有相似模式的所有类型的不同组合
"XXXXXXXXXXXXXXXXXXXXX" from "text I want to get" within ZZZZZZZZZZZZZZZZZZZZ
X 和 Z 的长度会发生变化,from 和 within 之间的文本也会发生变化,但 from 和 inside 始终存在于文本中。如何进行查询以获取要进入表变量的文本,以便将其与同一表中的其他列进行比较,看看它们是否匹配?
我有表变量和标量变量来获取值。我只需要正确的选择语句。