Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Msg 8114, Level 16, State 1, Line 5
  2. Error converting data type nvarchar to int.
  3. Msg 473, Level 16, State 1, Line 5
  4. The incorrect value "DATE_NBR" is supplied in the PIVOT operator.
  5.  
  6.  
  7.  
  8. select
  9. *
  10. FROM (Select METRIC, DATE_NBR as DN, COUNT from
  11. QC_CM_DATA) p
  12. pivot
  13. (avg(COUNT) for DN IN (DATE_NBR)) as pivota
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement