How Can I Use the count Function to Perform Aggregation?
The correct method for using the count function to perform aggregation is as follows:
SELECThttp_method,count(http_method)FROMapigatewayWHEREservice_id = 'ecs' Group BY http_method
Or
SELECThttp_methodFROMapigatewayWHEREservice_id = 'ecs' DISTRIBUTE BY http_method
If an incorrect method is used, an error will be reported.
SELECThttp_method,count(http_method)FROMapigatewayWHEREservice_id = 'ecs' DISTRIBUTE BY http_method
Parent topic: SQL Job Development