需求:
在日期维表中添加一列,周,上周五到本周四代表一周
直接上sql:
select aa.dates,substr(dates,0,4) as years,substr(dates,0,7) as months,bb.weekss as weeks from
(
select dates, concat(substr
需求:
在日期维表中添加一列,周,上周五到本周四代表一周
直接上sql:
select aa.dates,substr(dates,0,4) as years,substr(dates,0,7) as months,bb.weekss as weeks from
(
select dates, concat(substr