我有 3 个参数,我必须使用以下公式进行评分:
rank = 6*score(name)=3*score(diagnosis)+score(description);
我需要3分,对吗?
我知道对于 1 分,您会编写如下查询:
SELECT score(1), itemName
FROM item WHERE contains(description, 'database', 1) > 0
order by score(1) desc;
如果我有 3 个要搜索的字段(名称、描述、诊断?),我将如何在数据库表中查找关键字?
我有这个:
SELECT score(1), patient_name, score(2), diagnosis, score(3),description
FROM radiology_record r
WHERE (not sure what to put in the WHERE SECTION)
ORDER BY (6*score(1)+3*score(2)+score(3)) desc;