Created
November 13, 2017 15:54
-
-
Save slavpetroff/6ef47a2ec6414100a6a4668fe9823077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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