我正在尝试模糊连接 2 个表
SELECT
jaro_winkler(b.name, po.owner) as similarity,
b.name,
po.owner
FROM property_owners po
JOIN businesses b
ON similarity > .97;
这只返回 property_owners 的第一条记录的匹配项,任何人都可以告诉我为什么。
如何使用查询的(大部分)部分作为返回您要查找的内容的源?
select *
from (SELECT
jaro_winkler(b.name, po.owner) as similarity,
b.name,
po.owner
FROM property_owners po CROSS JOIN businesses b
)
WHERE similarity > .97;