mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 04:32:33 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
5 lines
190 B
SQL
5 lines
190 B
SQL
select StartDate, TraficSourceID in (0) ? 'type_in' : 'other' as traf_type, sum(Sign)
|
|
from test.visits
|
|
where CounterID = 842440
|
|
group by StartDate, traf_type ORDER BY StartDate, traf_type
|