CO
AND (toDate(p.done_date) between date_add(toStartOfMonth(now()), INTERVAL -1 MONTH) and toStartOfMonth(now())-1 /*prev full month*/
or p.done_date is null )
Size: a a a
CO
T🐜
'UTC'
, который по дефолту стоит в настройках...DC
'UTC'
, который по дефолту стоит в настройках...T🐜
DC
SELECT toStartOfMinute(toDateTime('2017-12-31 00:01:30'))
┌─toStartOfMinute(toDateTime('2017-12-31 00:01:30'))─┐
│ 2017-12-31 00:01:00 │
└────────────────────────────────────────────────────┘
SELECT toStartOfMinute(toDateTime('2017-12-31 00:01:30'), '')
Received exception from server (version 20.10.1):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: Function toStartOfMinute supports a 2nd argument (optional) that must be non-empty and be a valid time zone.
T🐜
(`eventTime` >= toStartOfDay(yesterday()))
DC
DC
N
kp
DC
N
DC
kp
DC
DC
D
DC
R
D