Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想计算两个时间戳之间的周末数。我的数据位于 Teradata 中。我不能使用原始时差,因为起点会有所不同。
周差应该等于两个 Timestamos 之间的周末数,所以试试:
ABS(td_week_of_calendar(TS_2) - td_week_of_calendar(TS_1))