需要SQL专业知识

时间:2011-02-26 08:01:58

标签: sql contains containstable

不是SQL专家,但我到目前为止:)

我有一个工作查询,我很乐意从RANK获得{ - 1}}因此需要使用CONTAINSTABLE代替CONTAINS

如何将此查询转换为两个结果合并的RANK结果?

SELECT *
FROM [dbo].[prov] AS [Extent1]
WHERE (CONTAINS(([Name]), '"test*"')) OR ( EXISTS (SELECT 
    1 AS [C1]
    FROM  [dbo].[pv] AS [Extent2]
    INNER JOIN [dbo].[bin] AS [Extent3] ON [Extent3].[Id] = [Extent2].[tb_Id]
    WHERE ([Extent1].[Id] = [Extent2].[tp_id]) AND (CONTAINS([Extent3].[Name], '"test*"'))))

0 个答案:

没有答案