mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
275 lines
17 KiB
Plaintext
275 lines
17 KiB
Plaintext
-- { echo }
|
||
|
||
SET allow_prefetched_read_pool_for_remote_filesystem=0;
|
||
SET enable_filesystem_cache_on_write_operations=0;
|
||
SET max_memory_usage='20G';
|
||
SYSTEM DROP FILESYSTEM CACHE;
|
||
SELECT count() FROM test.hits_s3;
|
||
8873898
|
||
SELECT count() FROM test.hits_s3 WHERE AdvEngineID != 0;
|
||
30641
|
||
SELECT sum(AdvEngineID), count(), avg(ResolutionWidth) FROM test.hits_s3 ;
|
||
329039 8873898 1400.8565027454677
|
||
SELECT sum(UserID) FROM test.hits_s3 ;
|
||
15358948234638402412
|
||
SELECT uniq(UserID) FROM test.hits_s3 ;
|
||
120665
|
||
SELECT uniq(SearchPhrase) FROM test.hits_s3 ;
|
||
132591
|
||
SELECT min(EventDate), max(EventDate) FROM test.hits_s3 ;
|
||
2014-03-17 2014-03-23
|
||
SELECT AdvEngineID, count() FROM test.hits_s3 WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY AdvEngineID DESC;
|
||
62 7
|
||
61 12
|
||
58 83
|
||
55 281
|
||
52 454
|
||
51 74
|
||
50 353
|
||
49 7
|
||
48 224
|
||
42 72
|
||
41 76
|
||
40 91
|
||
35 2751
|
||
32 141
|
||
30 1832
|
||
24 9
|
||
22 3
|
||
18 3
|
||
16 1019
|
||
12 1
|
||
10 3
|
||
4 10
|
||
3 22948
|
||
2 187
|
||
SELECT RegionID, uniq(UserID) AS u FROM test.hits_s3 GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
||
196 9275
|
||
8363 4624
|
||
15887 4585
|
||
241 4488
|
||
207 3596
|
||
3 3319
|
||
12504 1594
|
||
183 1592
|
||
57 1251
|
||
225 1177
|
||
SELECT RegionID, sum(AdvEngineID), count() AS c, avg(ResolutionWidth), uniq(UserID) FROM test.hits_s3 GROUP BY RegionID ORDER BY c DESC LIMIT 10;
|
||
196 32570 1311992 1437.5239170665675 9275
|
||
3 11425 428577 1424.2968801405582 3319
|
||
241 8291 320659 1149.9956152797831 4488
|
||
207 7360 285615 1264.5680093832607 3596
|
||
15887 27514 197463 1392.8657064867848 4585
|
||
8363 26522 197154 1361.9469247390364 4624
|
||
183 13054 186914 1470.3840054784553 1592
|
||
225 1817 164048 1404.8909831268898 1177
|
||
40 1883 107154 1407.6735912798401 808
|
||
57 2146 99424 1200.338721033151 1251
|
||
SELECT MobilePhoneModel, uniq(UserID) AS u FROM test.hits_s3 WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
||
S820_ROW 7616
|
||
iPhone 2 6111
|
||
LG Optimus 4134
|
||
Samsung Galaxy 813
|
||
iPad HD 7 604
|
||
Sams 558
|
||
Samsung Galaxy Note 501
|
||
iPad 2 434
|
||
iPhone S720 393
|
||
iPad 10 FHD 306
|
||
SELECT MobilePhone, MobilePhoneModel, uniq(UserID) AS u FROM test.hits_s3 WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
||
1 S820_ROW 7613
|
||
7 iPhone 2 5993
|
||
1 LG Optimus 4098
|
||
5 Samsung Galaxy Note 499
|
||
5 Sams 346
|
||
5 Samsung Galaxy 273
|
||
7 iPad HD 7 240
|
||
5 iPad 213
|
||
4 Sams 210
|
||
7 Samsung Galaxy 189
|
||
SELECT uniq(SearchPhrase), count() AS c FROM test.hits_s3 WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
1 3567
|
||
1 2402
|
||
1 2166
|
||
1 1848
|
||
1 1659
|
||
1 1549
|
||
1 1480
|
||
1 1247
|
||
1 1112
|
||
1 1091
|
||
SELECT uniq(SearchPhrase), uniq(UserID) AS u FROM test.hits_s3 WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
||
1 786
|
||
1 479
|
||
1 320
|
||
1 188
|
||
1 181
|
||
1 174
|
||
1 173
|
||
1 162
|
||
1 159
|
||
1 141
|
||
SELECT SearchEngineID, uniq(SearchPhrase), count() AS c FROM test.hits_s3 WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
3 1 3490
|
||
3 1 2166
|
||
3 1 1599
|
||
3 1 1549
|
||
3 1 1530
|
||
3 1 1442
|
||
3 1 1247
|
||
3 1 1112
|
||
3 1 1091
|
||
3 1 1064
|
||
SELECT UserID, count() FROM test.hits_s3 GROUP BY UserID ORDER BY count() DESC LIMIT 10;
|
||
1205491256153864188 31519
|
||
3228040076666004453 20688
|
||
2543118835429830843 16329
|
||
1961021224905272484 13484
|
||
4322253409885123546 11186
|
||
2034549784946942048 10970
|
||
397859646441652491 8229
|
||
8032089779962875762 8149
|
||
1839265440135330496 7816
|
||
5548175707459682622 7806
|
||
SELECT UserID, uniq(SearchPhrase) as m, count() as c FROM test.hits_s3 GROUP BY UserID, SearchPhrase ORDER BY UserID, m, c DESC LIMIT 10;
|
||
2961521519262 1 56
|
||
87878526839192 1 414
|
||
87878526839192 1 15
|
||
87878526839192 1 6
|
||
87878526839192 1 6
|
||
87878526839192 1 5
|
||
87878526839192 1 5
|
||
87878526839192 1 5
|
||
87878526839192 1 4
|
||
87878526839192 1 3
|
||
SELECT UserID, uniq(SearchPhrase) as m, count() as c FROM test.hits_s3 GROUP BY UserID, SearchPhrase ORDER BY UserID, m, c LIMIT 10;
|
||
2961521519262 1 56
|
||
87878526839192 1 1
|
||
87878526839192 1 1
|
||
87878526839192 1 1
|
||
87878526839192 1 2
|
||
87878526839192 1 3
|
||
87878526839192 1 4
|
||
87878526839192 1 5
|
||
87878526839192 1 5
|
||
87878526839192 1 5
|
||
SELECT UserID, toMinute(EventTime) AS m, uniq(SearchPhrase) as u, count() as c FROM test.hits_s3 GROUP BY UserID, m, SearchPhrase ORDER BY UserID DESC LIMIT 10 FORMAT Null;
|
||
SELECT UserID FROM test.hits_s3 WHERE UserID = 12345678901234567890;
|
||
SELECT count() FROM test.hits_s3 WHERE URL LIKE '%metrika%';
|
||
2348
|
||
SELECT uniq(SearchPhrase) as u, max(URL) as m, count() AS c FROM test.hits_s3 WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u, m, c DESC LIMIT 10;
|
||
1 goal://delive/812metrika.com/kizi-bulochkomna 4
|
||
1 goal://delive/812metrika.com/kizi-bulochkomna 2
|
||
1 goal://delive/812metrika.com/kizi-bulochkomna 2
|
||
1 goal://delive/812metrika.com/kizi-bulochkomna 2
|
||
1 goal://mail.yandex.ru/yrs/ekonometrika/kermosure-batakte 2
|
||
1 http:%2F%2F%2F2014/03/18/cid=54&metrika.com 1
|
||
1 http:%2F%2Ffiles&order=0&metrikancy-podar 1
|
||
1 http:%2F%2Fiteme.metrika 1
|
||
1 http:%2F%2Fproduct/shop.rbc.ru/rostometrikatuvali-k-pensadabuga/nauka_30_m_610_730641%2F01%2Fannovsk/dom-drugie_zhalujsta-s-social 1
|
||
1 http:%2F%2Fwww.kirovanny/donnel_mart]=creative=0&metrika.ru/socialog 1
|
||
SELECT uniq(SearchPhrase), max(URL), max(Title), count() AS c, uniq(UserID) FROM test.hits_s3 WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
1 http://korer.ru/categories.ru/?vkb Яндекс: нашлось 184 тыс изображений програница 27 тыс. ответов в России - 1245 1
|
||
1 http://korer.ru/categories.ru/?vkb Яндекс.Картинках, поиск на AVITO.ru • Знакомства вакансии на дом электриса 710 1
|
||
1 http://yandsearch[run][min]=200 одного подаров в Краснодателя » Страница 2 - современно в Яндекс: нашлось 8 мартфонарнажатие и последник Красность рисунки на AVITO.ru. Часы VU+ Uno 696 310
|
||
1 http://korer.ru/categories.ru/?vkb Яндекс: нашем качествует о тебя не следников PRAJNA Cerator.org.com / Shopogody - Read izle, Diva.BY 668 1
|
||
1 http://yandex.ru/chechristana.ru/clck/jsredircnt=1377554 Яндекс.Новости в Санкт-Петербурге: 228-135 тыс. ответов цифр трудников на Весная 572 1
|
||
1 https://dns-state=AiuY0DBWFJ4ePaEs статися водят? - Испании туре за неделки игрушенко — Ирина домашних услуг Россия) - Яндекс: нашлось 236 тыс изображений 546 54
|
||
1 http://korer.ru/categories.ru/?vkb Яндекс.Новоришь всё о купить модели Виннис, ЧП. Соболєв і 457 1
|
||
1 https://my.mail.ru/appliancePotr 芒果 | ТЕЛЕГРАФ - Яндекс.Почта Mail.Ru: Из-за смотреть 439 221
|
||
1 http://korer.ru/categories.ru/?vkb Продажа плании онлайн бесплатно в Яндекс.Маркетинг - новости менеджера, 61 438 1
|
||
1 http://korer.ru/categories.ru/?vkb Яндекс: нашем качестве: почалась 396 Hp) 5-dr 200000 для зимние восписок тили 395 1
|
||
SELECT * FROM test.hits_s3 WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10 format Null;
|
||
SELECT SearchPhrase FROM test.hits_s3 WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10 FORMAT Null;
|
||
SELECT SearchPhrase FROM test.hits_s3 WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10 FORMAT Null;
|
||
SELECT SearchPhrase FROM test.hits_s3 WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10 FORMAT Null;
|
||
SELECT CounterID, avg(length(URL)) AS l, count() AS c FROM test.hits_s3 WHERE URL != '' GROUP BY CounterID HAVING c > 100000 ORDER BY l DESC LIMIT 25;
|
||
25703952 185.35847185332617 147211
|
||
732797 145.03929351646454 475142
|
||
792887 123.97688315087015 252197
|
||
3807842 78.46108053235935 196033
|
||
1704509 60.11621475966243 523264
|
||
598875 20.267298451681793 337140
|
||
SELECT domainWithoutWWW(Referer) AS key, avg(length(Referer)) AS l, count() AS c, max(Referer) FROM test.hits_s3 WHERE Referer != '' GROUP BY key HAVING c > 100000 ORDER BY l DESC LIMIT 25;
|
||
vk.com.ua 670.6812170535467 205447 https://vk.com.ua/health.mail.yandsearch?lr=213&msid=87&redircnt=1310461&with_photorcycle/users/424246b7dcbba51/offers
|
||
avito.ru 89.56139198679928 243623 https://avito.ru/стих по биатлона
|
||
vk.com 88.93009846053418 680171 https://vk.com/video
|
||
yandex.ru 85.79982623523495 554773 https://yandex.ru/yandsearch
|
||
81.39774471008556 2237229 httpvmkNCAErJlhPSHlqdmtsWFc4MXZtLUR1Q3Y9tM8jq5BkkHRyeFVKWTEJ6dE9iQnYCex9
|
||
m.auto.ru 58.542011573622986 118027 https://m.auto.ru/yoshka-sokaklari-60.html#/battle-ru11
|
||
SELECT sum(ResolutionWidth), sum(ResolutionWidth + 1), sum(ResolutionWidth + 2), sum(ResolutionWidth + 3), sum(ResolutionWidth + 4), sum(ResolutionWidth + 5), sum(ResolutionWidth + 6), sum(ResolutionWidth + 7), sum(ResolutionWidth + 8), sum(ResolutionWidth + 9), sum(ResolutionWidth + 10), sum(ResolutionWidth + 11), sum(ResolutionWidth + 12), sum(ResolutionWidth + 13), sum(ResolutionWidth + 14), sum(ResolutionWidth + 15), sum(ResolutionWidth + 16), sum(ResolutionWidth + 17), sum(ResolutionWidth + 18), sum(ResolutionWidth + 19), sum(ResolutionWidth + 20), sum(ResolutionWidth + 21), sum(ResolutionWidth + 22), sum(ResolutionWidth + 23), sum(ResolutionWidth + 24), sum(ResolutionWidth + 25), sum(ResolutionWidth + 26), sum(ResolutionWidth + 27), sum(ResolutionWidth + 28), sum(ResolutionWidth + 29), sum(ResolutionWidth + 30), sum(ResolutionWidth + 31), sum(ResolutionWidth + 32), sum(ResolutionWidth + 33), sum(ResolutionWidth + 34), sum(ResolutionWidth + 35), sum(ResolutionWidth + 36), sum(ResolutionWidth + 37), sum(ResolutionWidth + 38), sum(ResolutionWidth + 39), sum(ResolutionWidth + 40), sum(ResolutionWidth + 41), sum(ResolutionWidth + 42), sum(ResolutionWidth + 43), sum(ResolutionWidth + 44), sum(ResolutionWidth + 45), sum(ResolutionWidth + 46), sum(ResolutionWidth + 47), sum(ResolutionWidth + 48), sum(ResolutionWidth + 49), sum(ResolutionWidth + 50), sum(ResolutionWidth + 51), sum(ResolutionWidth + 52), sum(ResolutionWidth + 53), sum(ResolutionWidth + 54), sum(ResolutionWidth + 55), sum(ResolutionWidth + 56), sum(ResolutionWidth + 57), sum(ResolutionWidth + 58), sum(ResolutionWidth + 59), sum(ResolutionWidth + 60), sum(ResolutionWidth + 61), sum(ResolutionWidth + 62), sum(ResolutionWidth + 63), sum(ResolutionWidth + 64), sum(ResolutionWidth + 65), sum(ResolutionWidth + 66), sum(ResolutionWidth + 67), sum(ResolutionWidth + 68), sum(ResolutionWidth + 69), sum(ResolutionWidth + 70), sum(ResolutionWidth + 71), sum(ResolutionWidth + 72), sum(ResolutionWidth + 73), sum(ResolutionWidth + 74), sum(ResolutionWidth + 75), sum(ResolutionWidth + 76), sum(ResolutionWidth + 77), sum(ResolutionWidth + 78), sum(ResolutionWidth + 79), sum(ResolutionWidth + 80), sum(ResolutionWidth + 81), sum(ResolutionWidth + 82), sum(ResolutionWidth + 83), sum(ResolutionWidth + 84), sum(ResolutionWidth + 85), sum(ResolutionWidth + 86), sum(ResolutionWidth + 87), sum(ResolutionWidth + 88), sum(ResolutionWidth + 89) FROM test.hits_s3;
|
||
12431057718 12439931616 12448805514 12457679412 12466553310 12475427208 12484301106 12493175004 12502048902 12510922800 12519796698 12528670596 12537544494 12546418392 12555292290 12564166188 12573040086 12581913984 12590787882 12599661780 12608535678 12617409576 12626283474 12635157372 12644031270 12652905168 12661779066 12670652964 12679526862 12688400760 12697274658 12706148556 12715022454 12723896352 12732770250 12741644148 12750518046 12759391944 12768265842 12777139740 12786013638 12794887536 12803761434 12812635332 12821509230 12830383128 12839257026 12848130924 12857004822 12865878720 12874752618 12883626516 12892500414 12901374312 12910248210 12919122108 12927996006 12936869904 12945743802 12954617700 12963491598 12972365496 12981239394 12990113292 12998987190 13007861088 13016734986 13025608884 13034482782 13043356680 13052230578 13061104476 13069978374 13078852272 13087726170 13096600068 13105473966 13114347864 13123221762 13132095660 13140969558 13149843456 13158717354 13167591252 13176465150 13185339048 13194212946 13203086844 13211960742 13220834640
|
||
SELECT SearchEngineID, ClientIP, count() AS c, sum(Refresh), avg(ResolutionWidth) FROM test.hits_s3 WHERE SearchPhrase != '' GROUP BY SearchEngineID, ClientIP ORDER BY c DESC LIMIT 10;
|
||
3 1660732911 2564 21 1339
|
||
3 1795610432 1808 49 1622
|
||
3 442614592 1801 63 1622
|
||
3 280750947 1722 92 1339
|
||
3 1794713726 1565 143 1297
|
||
3 2122160434 1449 29 1846
|
||
3 2120191779 1431 117 1339
|
||
3 3726560380 1338 37 1339
|
||
3 1382059522 1212 25 1386
|
||
3 2454020642 1108 25 1339
|
||
SELECT WatchID, ClientIP, count() AS c, sum(Refresh), avg(ResolutionWidth) FROM test.hits_s3 WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY c, WatchID DESC LIMIT 10;
|
||
9223343978848462524 807160513 1 0 1339
|
||
9223311592760478486 622798371 1 0 1622
|
||
9223290551912005343 1399751135 1 0 1386
|
||
9223283743622263900 4248624768 1 0 1339
|
||
9223277679551805964 2079360072 1 0 1639
|
||
9223250576755718785 471654323 1 0 1622
|
||
9223247301332594153 2030669591 1 0 1297
|
||
9223246228500137980 2156909056 1 0 467
|
||
9223227691645120897 91683468 1 0 1846
|
||
9223220893120643152 1357136342 1 0 1297
|
||
SELECT WatchID, ClientIP, count() AS c, sum(Refresh), avg(ResolutionWidth) FROM test.hits_s3 GROUP BY WatchID, ClientIP ORDER BY c, WatchID DESC LIMIT 10;
|
||
9223371678237104442 1510763633 1 0 1622
|
||
9223371583739401906 1316647510 1 0 1587
|
||
9223369973176670469 1581144184 1 0 1297
|
||
9223369447059354172 1759910327 1 0 1339
|
||
9223368297061364285 1900808651 1 0 1339
|
||
9223367627527921417 1250879542 1 0 1587
|
||
9223367120605710467 818965311 1 0 1622
|
||
9223365068732217887 287613368 1 0 1386
|
||
9223364444623921469 697478885 1 0 1622
|
||
9223363407092000972 76513606 1 0 1297
|
||
SELECT URL, count() AS c FROM test.hits_s3 GROUP BY URL ORDER BY c DESC LIMIT 10;
|
||
http://public_search 311119
|
||
http://auto.ru/chatay-barana.ru/traction.html#maybettaya 189442
|
||
http://korer.ru/categories.ru/?vkb 142669
|
||
http://main=hurriyet.com/iframe/frm_index.ru/photofunki-sayesilcipo-showthredir?from=&seatsTo=&purchynet.com/galaxy-nosti.ru/preso.tv/Archi.shtml?002 122598
|
||
http://korablitz.ru/L_1OFFERS_CRD 45069
|
||
http://bravoslava-230v 32907
|
||
http://images.yandex.ru 22100
|
||
http://doc/00003713844324&education.html?logi-38-rasstreferer_id 21145
|
||
http://rutube.ru/patianu 19064
|
||
http://search?win=11&pos=22&img_url=http:%2F%2Fcs411276 19060
|
||
SELECT 1, URL, count() AS c FROM test.hits_s3 GROUP BY 1, URL ORDER BY c DESC LIMIT 10;
|
||
1 http://public_search 311119
|
||
1 http://auto.ru/chatay-barana.ru/traction.html#maybettaya 189442
|
||
1 http://korer.ru/categories.ru/?vkb 142669
|
||
1 http://main=hurriyet.com/iframe/frm_index.ru/photofunki-sayesilcipo-showthredir?from=&seatsTo=&purchynet.com/galaxy-nosti.ru/preso.tv/Archi.shtml?002 122598
|
||
1 http://korablitz.ru/L_1OFFERS_CRD 45069
|
||
1 http://bravoslava-230v 32907
|
||
1 http://images.yandex.ru 22100
|
||
1 http://doc/00003713844324&education.html?logi-38-rasstreferer_id 21145
|
||
1 http://rutube.ru/patianu 19064
|
||
1 http://search?win=11&pos=22&img_url=http:%2F%2Fcs411276 19060
|
||
SELECT ClientIP AS x, x - 1, x - 2, x - 3, count() AS c FROM test.hits_s3 GROUP BY x, x - 1, x - 2, x - 3 ORDER BY c DESC LIMIT 10;
|
||
2950145570 2950145569 2950145568 2950145567 8149
|
||
2408492821 2408492820 2408492819 2408492818 7770
|
||
2494028488 2494028487 2494028486 2494028485 7696
|
||
1688720600 1688720599 1688720598 1688720597 7681
|
||
356903718 356903717 356903716 356903715 6817
|
||
908127740 908127739 908127738 908127737 6624
|
||
45907785 45907784 45907783 45907782 6556
|
||
1567954933 1567954932 1567954931 1567954930 6203
|
||
406416527 406416526 406416525 406416524 6015
|
||
1410634230 1410634229 1410634228 1410634227 5742
|
||
SELECT URL, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT DontCountHits AND NOT Refresh AND notEmpty(URL) GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
||
SELECT Title, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT DontCountHits AND NOT Refresh AND notEmpty(Title) GROUP BY Title ORDER BY PageViews, Title DESC LIMIT 10;
|
||
SELECT URL, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
||
SELECT TraficSourceID, SearchEngineID, AdvEngineID, ((SearchEngineID = 0 AND AdvEngineID = 0) ? Referer : '') AS Src, URL AS Dst, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews, TraficSourceID DESC LIMIT 1000;
|
||
SELECT URLHash, EventDate, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = halfMD5('http://example.ru/') GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100;
|
||
SELECT WindowClientWidth, WindowClientHeight, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND NOT DontCountHits AND URLHash = halfMD5('http://example.ru/') GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000;
|
||
SELECT toStartOfMinute(EventTime) AS Minute, count() AS PageViews FROM test.hits_s3 WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-02' AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|