sql server - How to count values from rows and display the result in columns -


कृपया मेरी मदद करें

  ओरेकल | स्थिति | अन्य स्तंभों | 41 | ए | 52 | डब्ल्यू | 41 | ए | 52 | डब्ल्यू | 41 | डब्ल्यू | __________________   

मुझे एक परिणामी क्वेरी की आवश्यकता है जो प्रत्येक ओरेकल में स्थिति की गिनती को इस तरह दिखाती है:

  ओरेकल | कुल (ए) | कुल (डब्ल्यू) | 41 | 2 | 1 | 52 | 0 | 2 |   

यह कोशिश करें

सीटीई के साथ पीएसटी के रूप में ([ए], [डब्लू]) में स्थिति के लिए सीटीई पीवोट (गिनती (स्थिति)

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -