In this blog post, you’ll learn more about the Sybase Error PIVOT error: An IN clause item does not contain the same number of items as the FOR clause and the reason for receiving this error
Sybase SQL Error Message
PIVOT error: An IN clause item does not contain the same number of items as the FOR clause
Reason for this Error
You specified a PIVOT, but the number of items in the FOR clause does not match the number of items in one IN clause item.