select DAYOFWEEK('2020-01-01 00:00:00')
select DAYOFWEEK('2020-01-01 00:00:00') from ts_4893.meters order by ts limit 10
select DAYOFWEEK('2021-01-01 00:00:00')
select DAYOFWEEK('2021-01-01 00:00:00') from ts_4893.meters order by ts limit 10
select DAYOFWEEK('1998-01-01 00:00:00')
select DAYOFWEEK('1998-01-01 00:00:00') from ts_4893.meters order by ts limit 10
select DAYOFWEEK('1998-12-31 00:00:00')
select DAYOFWEEK('1998-12-31 00:00:00') from ts_4893.meters order by ts limit 10
select DAYOFWEEK('2000-01-06 00:00:00')
select DAYOFWEEK('2000-01-06 00:00:00') from ts_4893.meters order by ts limit 10
select DAYOFWEEK(1725095657)
select DAYOFWEEK(1725095657) from ts_4893.meters order by ts limit 10
select DAYOFWEEK(ts) from ts_4893.meters order by ts limit 10
select dayofweek(null)
select dayofweek('1721020591')
select dayofweek('1721020666229')
select dayofweek('abc')
select dayofweek('01/01/2020')
select dayofweek('20200101')
select dayofweek('20/01/01')
select dayofweek('11/01/31')
select dayofweek('01-JAN-20')
select dayofweek('2020-01-01')
select dayofweek(1721020666)
select dayofweek(1721020666229)
select dayofweek(ts) from ts_4893.d0 order by ts limit 10
select dayofweek(ts) from ts_4893.meters order by ts limit 10
select dayofweek('2024-02-29')
select dayofweek('2024-01-01')
select dayofweek('2024-12-31')
select dayofweek('9999-12-31')
select dayofweek(ts) from ts_4893.meters limit 1
select dayofweek(name) from ts_4893.meters limit 1
select dayofweek(timediff(ts, '2024-10-10 09:36:50.172')) from ts_4893.meters limit 1
select id, dayofweek(ts) from ts_4893.meters where id = 1 limit 1
select groupid, sum(dayofweek(ts)) from ts_4893.meters group by groupid order by groupid
