Re: Inserting Data Into New Table
Hi,
I think the problem lies with mentioning the schema......
if my orginal code is:
create view passport2
as
SELECT
tblSkillText."SkillText",
tblSkillLevelValue."PassportID", tblSkillLevelValue."SkillLevelID", tblSkillLevelValue."CompletedAt", tblSkillLevelValue."Active", tblSkillLevelValue."PctCompleted"
FROM
{ oj (("Passports2"."dbo"."tblSkillLevelText" tblSkillLevelText INNER JOIN "Passports2"."dbo"."tblSkillText" tblSkillText ON
tblSkillLevelText."LanguageID" = tblSkillText."LanguageID")
INNER JOIN "Passports2"."dbo"."tblSkillLevel" tblSkillLevel ON
tblSkillLevelText."SkillLevelID" = tblSkillLevel."SkillLevelID")
INNER JOIN "Passports2"."dbo"."tblSkillLevelValue" tblSkillLevelValue ON
tblSkillLevel."SkillLevelID" = tblSkillLevelValue."SkillLevelID"}
where
tblSkillLevelValue."Active"=1 and tblSkillLevelValue."PctCompleted"=100 and tblSkillText."SkillText"='Operate a computer'
Display More
and my create table code is:
create table newpassport2
(skilltext char(50), passportid char(10), skilllevelid char(10), dateid char(11), active char(10), pctcompleted char(10))
Everything above, i am happy with.....
the crux is inserting data from passport2 to newpassport2 and the code i used was:
Insert into newpassport2 (skilltext char(50), passportid char(10), skilllevelid char(10), dateid char(11), active char(10), pctcompleted char(10))
SELECT
skilltext, passportID, SkillLevelID, CompletedAt, Active, PctCompleted
FROM
Passport2
and i think the problem is the end part where i have not properly defined the schema? Does this make a difference?
Again, any help will be appreciated.
Regards
Jay