计算每周的记录数

SELECT date_trunc(‘week’,<>)ASWeek,count(*)FROM <> GROUP BY 1 ORDER BY 1;