Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

msg 156 unclear

$
0
0
followiing Unpivot Query Gives error 156.....any idea

select 
School_Year,
COL,
DatePair
from 
#stagedata4
unpivot                              
 (
DatePair FOR COL IN  ( T1M1,T1M2)

 ) As up


error:
-----------
Msg 156, Level 15, State 1, Line 230
Incorrect syntax near the keyword 'FOR'.

student

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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