Help Center/ Data Lake Insight/ FAQs/ SQL Jobs/ SQL Job Development/ How Can I Use the count Function to Perform Aggregation?
Updated on 2025-03-17 GMT+08:00
How Can I Use the count Function to Perform Aggregation?
The correct method for using the count function to perform aggregation is as follows:
SELECT http_method, count(http_method) FROM apigateway WHERE service_id = 'ecs' Group BY http_method
Or
SELECT http_method FROM apigateway WHERE service_id = 'ecs' DISTRIBUTE BY http_method
If an incorrect method is used, an error will be reported.
SELECT http_method, count(http_method) FROM apigateway WHERE service_id = 'ecs' DISTRIBUTE BY http_method
Parent topic: SQL Job Development
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.