I get an error with my script:
saying: Invalid Column name 'Y' Invalid column name '200710'
Does someone know why this is
any help would be appreciated.
INSERT INTO eval_master ( PIDM, REGISTERED_IND, RSTS_CODE, TERM, RSTS_DESC, TERM_DESC, CRN, [LAST], DEGC_DESC, MAJR_DESC1, SSN, MAJR_DESC1, ASTD_CODE_END_OF_TERM, ASTD_DESC_END_OF_TERM, ASTD_DATE_END_OF_TERM, SUBJ_CODE, COURSE_NUMBER, SUBJ_DESC, COURSE_TITLE, SECTION_NUMBER, INSTRUCTOR_LAST_NAME, INSTRUCTOR_FIRST_NAME, INDEX1 )
SELECT AS_STUDENT_REGISTRATION_DETAIL.PIDM_KEY, AS_STUDENT_REGISTRATION_DETAIL.REGISTERED_IND, AS_STUDENT_REGISTRATION_DETAIL.RSTS_CODE, AS_STUDENT_REGISTRATION_DETAIL.TERM_CODE_KEY, AS_STUDENT_REGISTRATION_DETAIL.RSTS_DESC, AS_STUDENT_REGISTRATION_DETAIL.TERM_DESC, AS_STUDENT_REGISTRATION_DETAIL.CRN_KEY, AS_STUDENT_REGISTRATION_DETAIL.LAST_NAME, AS_STUDENT_REGISTRATION_DETAIL.DEGC_DESC, AS_STUDENT_REGISTRATION_DETAIL.MAJR_DESC1, AS_STUDENT_REGISTRATION_DETAIL.SSN, AS_STUDENT_REGISTRATION_DETAIL.MAJR_DESC1, AS_STUDENT_REGISTRATION_DETAIL.ASTD_CODE_END_OF_TERM, AS_STUDENT_REGISTRATION_DETAIL.ASTD_DESC_END_OF_TERM, AS_STUDENT_REGISTRATION_DETAIL.ASTD_DATE_END_OF_TERM, AS_STUDENT_REGISTRATION_DETAIL.SUBJ_CODE, AS_STUDENT_REGISTRATION_DETAIL.COURSE_NUMBER, AS_STUDENT_REGISTRATION_DETAIL.SUBJ_DESC, AS_STUDENT_REGISTRATION_DETAIL.COURSE_TITLE, AS_STUDENT_REGISTRATION_DETAIL.SECTION_NUMBER, AS_STUDENT_REGISTRATION_DETAIL.INSTRUCTOR_LAST_NAME, AS_STUDENT_REGISTRATION_DETAIL.INSTRUCTOR_FIRST_NAME, AS_STUDENT_REGISTRATION_DETAIL.[PIDM_KEY] & [TERM_CODE_KEY] & [CRN_KEY] AS INDEX1
FROM eval_master RIGHT JOIN AS_STUDENT_REGISTRATION_DETAIL ON (eval_master.CRN = AS_STUDENT_REGISTRATION_DETAIL.CRN_KEY) AND (eval_master.TERM = AS_STUDENT_REGISTRATION_DETAIL.TERM_CODE_KEY) AND (eval_master.PIDM = AS_STUDENT_REGISTRATION_DETAIL.PIDM_KEY)
WHERE (((AS_STUDENT_REGISTRATION_DETAIL.REGISTERED_IND)="Y") AND ((AS_STUDENT_REGISTRATION_DETAIL.TERM_CODE_KEY)="200710"))
ORDER BY AS_STUDENT_REGISTRATION_DETAIL.PIDM_KEY;