Skip to content

Commit 53c71e9

Browse files
committed
group by device
1 parent 8f3c98f commit 53c71e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iterating_api_endpoint/pipes/top_browsers.pipe

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SQL >
1515
%
1616
select
1717
browser,
18+
device,
1819
uniqMerge(visits) as visits,
1920
countMerge(hits) as hits
2021
from
@@ -31,7 +32,7 @@ SQL >
3132
and date <= today()
3233
{% end %}
3334
group by
34-
browser
35+
browser, device
3536
order by
3637
visits desc
3738
limit {{Int32(skip, 0)}},{{Int32(limit, 50)}}

0 commit comments

Comments
 (0)