Skip to content

Instantly share code, notes, and snippets.

@slavpetroff
Created November 13, 2017 15:54
Show Gist options
  • Save slavpetroff/6ef47a2ec6414100a6a4668fe9823077 to your computer and use it in GitHub Desktop.
Save slavpetroff/6ef47a2ec6414100a6a4668fe9823077 to your computer and use it in GitHub Desktop.
First run:
SELECT
count(*) as counter, view_name, response_data, response_code, http_method
FROM tracking_request
GROUP BY view_name, response_data, response_code, http_method
ORDER BY view_name
LIMIT {limit_count};
Second run:
SELECT
count(*) as counter, view_name, response_data, response_code, http_method
FROM tracking_request
GROUP BY view_name, response_data, response_code, http_method
ORDER BY counter DESC
LIMIT {limit_count};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment