输入此查询时出现此错误:
SELECT E.event,
ED.location,
ED.doe,
ED.category,
( ( ED.numofdataset / ED.numoftimesloc ) * 100 ) AS
LOGLOC,
( ( ED.numofdataset / ED.numoftimesdoe ) * 100 ) AS
LOGDOE,
( ( ED.numofdataset / ED.numoftimescat ) * 100 ) AS
LOGCAT,
(( ( ED.numoftimesloc * ( Log(logloc) ) ) +
( ED.numoftimesdoe * ( Log(logdoe) ) ) + ( ED.numoftimescat *
( Log(logcat) ) ) )) AS
FINALRANK
FROM event E,
eventdetail ED
WHERE E.eventid = ED.eventid
AND ED.location = 'LONDON'
AND ED.category = 'Sports'
ORDER BY finalrank DESC;
命令控制器告诉我“LOGLOC”是“字段列表”中的未知列。谁能告诉我我做错了什么以及我对 LOG() 函数的使用是否正确?