Skip to content

Commit

Permalink
Update query
Browse files Browse the repository at this point in the history
  • Loading branch information
“LAKSHMIRPILLAI” committed Nov 19, 2024
1 parent 11b5db8 commit b4f9bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion super-mode-calculator/src/lib/build-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ views_with_regions AS (
WHERE received_date >= DATE_SUB('${dateString}', INTERVAL 1 DAY) AND received_date <= '${dateString}' AND ce.component_type = 'ACQUISITIONS_EPIC' AND ce.event_action = 'VIEW' AND
ce.event_timestamp >= TIMESTAMP '${dateHourString}' AND ce.event_timestamp < TIMESTAMP '${endDateHourString}') ,
views AS (
SELECT CONCAT(host,path) AS url, region, COUNT (*) AS total_views
SELECT CONCAT(protocol,'://',host,path) AS url, region, COUNT (*) AS total_views
FROM views_with_regions
GROUP BY 1, 2)
SELECT av.url,
Expand Down

0 comments on commit b4f9bfe

Please sign in to comment.