我有以下 SQL statmenet
SELECT COUNT('Oprettet af Initialer') AS meetings_booked,
Dato salgstrin,
VTEAM.TEAM
FROM KS_DRIFT.DIAN_POT_OPR POT
RIGHT JOIN KS_DRIFT.V_TEAM_DATO VTEAM ON VTEAM.DATO = POT.'Dato salgstrin'
WHERE exists (SELECT 1 FROM KS_DRIFT.V_TEAM_DATO WHERE KS_DRIFT.DIAN_POT_OPR.'Oprettet af Initialer' = KS_DRIFT.V_TEAM_DATO.INITIALER)
AND 'Salgstri' NOT IN('01 - Muligt emne','02 - Aktivt emne')
AND 'Oprettet dato' BETWEEN '2013-09-04' AND '2013-09-04'
GROUP BY 'Dato salgstrin' 'Oprettet af Initialer', VTEAM.TEAM
ORDER BY 'Dato salgstrin'
现在,每当我尝试运行它时,都会出现以下错误:
Invalid user.table.column, table.colum, or column specification
有谁知道为什么会发生这种情况以及我该如何解决?
桌子的图像
KS_DRIFT.DIAN_POT_OPR:
KS_DRIFT.VTEAM_DATO: