运行以下查询时,我收到一条错误消息
“查询表达式中的语法错误(缺少运算符)'diagnosis.Patient_No = 'Patient_No INNER JOIN Illness ON Illness.Illness_Code = Diagnosis.Illness_Code'
SELECT Patient.Last_Name AS LastName,
Patient.First_Name AS FirstName,
Patient.Gender AS Gender,
Patient.Age AS Age,
Illness.Illness_Desc AS illness,
Medication.Medication_Desc AS Medication,
Prescription.Dosage AS Dosage
FROM Patient
INNER JOIN Diagnosis ON Patient.Patient_No = Diagnosis.Patient_No
INNER JOIN Illness ON Diagnosis.Illness_Code = Illness.Illness_Code
INNER JOIN Prescription ON Patient.Patient_No = Prescription.Patient_No
INNER JOIN Medication ON Prescription.Medication_code = Medication.Medication_code
我确认 disease_code 都在 Illness 和 Diagnosis 表中,并且一切正常?不确定在此加入期间是否需要将这些疾病代码添加到 select 语句中?我尝试将它们添加到我的 Select 中,但这似乎对我也不起作用。