我想计算两个时间戳之间的周末数。我的数据位于Teradata中。我不能使用原始时间差,因为起始点会有所不同。
发布于 2018-07-20 05:39:16
周差值应该等于两个Timestamo之间的周末计数,因此只需尝试:
ABS(td_week_of_calendar(TS_2) - td_week_of_calendar(TS_1))
https://stackoverflow.com/questions/51406936
相似问题