Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Problem to create it

$
0
0
Hi,
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



Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>