SelbyGlenn
Technical User
Hi there,
I have two tables: APPMAIN and APPPERSONAL. Both have identical AppCode columns in them. I need to copy Course and YearGrp from APPPERSONAL to CourseId and CourseYear in APPMAIN. Here's what I have so far:
Insert INTO APPMAIN (CourseId, CourseYear) SELECT from APPPERSONAL (Course, YearGrp) WHERE APPMAIN.AppCode = APPPERSONAL.AppCode
it returns error: Incorrect syntax near the keyword 'from'
Any ideas where I'm going wrong?
Thanks in advance,
Glenn
BEng MCSE CCA
I have two tables: APPMAIN and APPPERSONAL. Both have identical AppCode columns in them. I need to copy Course and YearGrp from APPPERSONAL to CourseId and CourseYear in APPMAIN. Here's what I have so far:
Insert INTO APPMAIN (CourseId, CourseYear) SELECT from APPPERSONAL (Course, YearGrp) WHERE APPMAIN.AppCode = APPPERSONAL.AppCode
it returns error: Incorrect syntax near the keyword 'from'
Any ideas where I'm going wrong?
Thanks in advance,
Glenn
BEng MCSE CCA