我在SQL中有一个查询
SELECT ses_student.ses_studentId ,
ses_student.ses_Student ,
ses_student.ses_StudentName ,
col_StudentInvoicePayments.TrxID ,
col_StudentInvoicePayments.TrxNo ,
col_StudentInvoicePayments.TrxDate ,
col_StudentInvoicePayments.Name ,
col_StudentInvoicePayments.TotalAmount
FROM ses_student AS CRMAF_ses_student
INNER JOIN col_StudentInvoicePayments ON dses_student.ses_studentId = col_StudentInvoicePayments.ses_StudentId
它给出了错误 多个标识符ses_student.ses_studentId和ses_student.ses_Student
当我使用预过滤器时出现此错误" AS CRMAF_ses_student" 因为它是CRM数据库
答案 0 :(得分:0)
请尝试此更新的查询....
SELECT CRMAF_ses_student.ses_studentId ,
CRMAF_ses_student.ses_Student ,
CRMAF_ses_student.ses_StudentName ,
col_StudentInvoicePayments.TrxID ,
col_StudentInvoicePayments.TrxNo ,
col_StudentInvoicePayments.TrxDate ,
col_StudentInvoicePayments.Name ,
col_StudentInvoicePayments.TotalAmount
FROM ses_student AS CRMAF_ses_student
INNER JOIN col_StudentInvoicePayments ON CRMAF_ses_student.ses_studentId = col_StudentInvoicePayments.ses_StudentId