【发布时间】:2016-09-26 16:13:33
【问题描述】:
我收到错误消息“错误:当我没有使用完整的表名时,未解决对每个列名的表/相关名的引用。现在我正在使用完整的表名并遇到相同的错误。不确定是什么其他尝试 - 我对 SQL 很陌生,但仍然不太了解事物的工作原理。
这是日志的副本:
171 PROC SQL;
172 CREATE table Spillover AS select
172 ! Y16_CALC_STUD.Student_ID,Y16_LINK_GM.score,Y16_CALC_STUD.StudSGP,Y16_CALC_STUD.g rade_subject_ID,Y16_LINK_GM.employeeID,Y1
172 ! 6_GROW_TEACHER.HEDI,Y16_GROW_TEACHER.HEDI_points,Y16_GROW_TEACHER.avg_prescore
173 from (select Y16_CALC_STUD.Student_ID, Y16_CALC_STUD.StudSGP, Y16_CALC_STUD.CalcID, Y16_LINK_GM.school_DBN,
173 ! Y16_LINK_GM.Score, Y16_LINK_GM.employeeID, Y16_LINK_GM.grade_subject_ID
174 from Y16_CALC_Stud as a left join Y16_LINK_GM as link
175 on link.Student_ID = link.Student_ID)
176 as c left join Y16_GROW_Teacher as d on
177 Y16_CALC_Stud.StudCalcID = Y16_GROW_Teacher.calcID and Y16_LINK_GM.employeeID=Y16_GROW_Teacher.employeeID and
177 ! Y16_CALC_Stud.grade_subject_ID=Y16_GROW_Teacher.GRADE_SUBJECT;
ERROR: Unresolved reference to table/correlation name Y16_CALC_Stud.
ERROR: Unresolved reference to table/correlation name Y16_LINK_GM.
ERROR: Unresolved reference to table/correlation name Y16_CALC_Stud.
ERROR: Unresolved reference to table/correlation name Y16_CALC_STUD.
ERROR: Unresolved reference to table/correlation name Y16_LINK_GM.
ERROR: Unresolved reference to table/correlation name Y16_CALC_STUD.
ERROR: Unresolved reference to table/correlation name Y16_CALC_STUD.
ERROR: Unresolved reference to table/correlation name Y16_LINK_GM.
ERROR: Expression using equals (=) has components that are of different data types.
ERROR: Expression using equals (=) has components that are of different data types.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
我在 Base SAS 和 Enterprise Guide 中遇到同样的错误。
【问题讨论】:
标签: sql sas proc-sql enterprise-guide