Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Data Lake Insight/ FAQs/ Problems Related to SQL Jobs/ Job Development/ How Can I Use the count Function to Perform Aggregation?

How Can I Use the count Function to Perform Aggregation?

Updated on 2023-03-21 GMT+08:00

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
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback