Group by & count function in sqlalchemy -


मैं sqlalchemy में "group by and count" कमांड चाहता हूं। मैं यह कैसे कर सकता हूँ?

क्वेरी में काम करेगा, लेकिन यह समूहों की संख्या की गणना करेगा, प्रत्येक समूह में पंक्तियों की संख्या नहीं।

कहते हैं कि group_by प्रश्नों के लिए func.count () :

  सेक्लैलेमी आयात फ़ंक्शन सत्र.क्यूरी (टेबलकाउल, फ़ैशन। सीट (टेबलकाउम))। समूह_ द्वारा (टेबलकाउम) .all ()  

Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -