Following SQL syntax can be used to group data using expression.
select date(added_time) as a,count(*) from test_table group by a
This will group data by date and display its count. It doesn't work grouping with expression, So need to use alias naming for expression.
jordan 12
ReplyDeleteoff white shoes
yeezy boost 350
kd shoes
kyrie 6 shoes
palm angels clothing
yeezy boost 500
golden goose sneakers
palm angels t shirt
supreme clothing