1

我有这两个查询给了我想要的东西:

1)

SELECT sr.ServicesResourcesID AS ID, sr.Title, sr.ContactFirstName, sr.ContactLastName, sr.ContactEmail, sr.ContactPhone, sr.FileName, sr.URL, sr.Description AS Description, rt.Type, KEY_TBL.RANK 
FROMvResourceType rt,vServicesResources sr
INNER JOIN FREETEXTTABLE(ServicesResources, Title, 'computers') AS KEY_TBL
ON sr.ServicesResourcesID = KEY_TBL.[KEY] 
WHERE sr.ResourceTypeID = rt.ResourceTypeID
ORDER BY RANK DESC

2)

SELECT sr.ServicesResourcesID AS ID, sr.Title, sr.ContactFirstName, sr.ContactLastName, sr.ContactEmail, sr.ContactPhone, sr.FileName, sr.URL, sr.Description AS Description, rt.Type, KEY_TBL.RANK 
FROMvResourceType rt,vServicesResources sr
INNER JOIN FREETEXTTABLE(ServicesResources, Description, 'computers') AS KEY_TBL
ON sr.ServicesResourcesID = KEY_TBL.[KEY] 
WHERE sr.ResourceTypeID = rt.ResourceTypeID
ORDER BY RANK DESC

它们基本上是相同的查询。一个搜索标题,另一个搜索描述。我想将它们结合起来,并赋予标题更多的权重。

有任何想法吗?TIA。

4

0 回答 0