Hi,
when creating this
why do I get these errors?
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp3_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk2'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk2'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk3'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk4'.
when creating this
create view view2 as (select id1,fig_type,fig from (select id1,figtp1_ft1_mk1,figtp2_ft1_mk1,figtp3_ft1_mk1,figtp1_ft1_mk2,figtp2_ft1_mk2,figtp1_ft1_mk3,figtp2_ft1_mk4 from view1) p unpivot (fig for fig_type in (figtp1_ft1_mk1,figtp2_ft1_mk1,figtp3_ft1_mk1,figtp1_ft1_mk2,figtp2_ft1_mk2,figtp1_ft1_mk3,figtp2_ft1_mk4) )AS unpvt); go
why do I get these errors?
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp3_ft1_mk1'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk2'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk2'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp1_ft1_mk3'.
Msg tp17, Level 16, State 1, Procedure view2, Line 4
Invalid column name 'figtp2_ft1_mk4'.
Many Thanks & Best Regards, Hua Min