3

I have got the following table: enter image description here

I want to pivot this table with code:

SELECT productLine, productScale, buyPrice 
FROM PRODUCTS
PIVOT (
        AVG(buyPrice)
        FOR productScale
        IN ('1:10', '1:18')
);

But at line 3 of the query, I get an error in the title of this question. What is wrong?

Elnur
  • 164
  • 10

0 Answers0