标签: sql
CAST(CAST("stamp" AS date) AS varchar) "date" , "concat"(CAST("hour"("stamp") AS varchar), ':00 - ', CAST(("hour"("stamp") + 1) AS varchar), ':00') "Hours" , "count"(*) "tot"
我正在按小时间隔编写此查询,我希望该查询以30分钟为间隔,所以我需要做哪些更改,这是用aws athena编写的查询。