SHARE
TWEET

Untitled

a guest Jun 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top