I
I
imsha2017-02-28 01:36:03
SQL
imsha, 2017-02-28 01:36:03

Clickhouse, how to add row number column?

SELECT phone_normalize as phone, toStartOfMonth(date) as created FROM table ORDER BY phone_normalize, created Tell me
how to add a column with line numbers so that phone groups are taken into account.
See screenshot take.ms/PVQsN

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
imsha, 2017-02-28
@imsha

there is no such function in the current version of clickhouse

D
d-stream, 2017-02-28
@d-stream

ROW_NUMBER()
https://msdn.microsoft.com/en-us/library/ms189461.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question