过滤日期和时间范围内的数据你好。
我想过滤 2 个日期内的数据。
日期在另一个表中。
表格1:

表 2:

如何过滤表 1 中在表 2 中的 START_TIME 和 END_TIME 之间具有 END_TIME 的数据?
我想要新表中的结果。
希望我解释清楚。
谢谢你。
数据表回复:过滤日期和时间范围内的数据这是一种过滤类型的简单示例
Names Default To Here( 1 );
// Substitute the actual names of your data table
dt1 = Data Table( "table 1" );
dt2 = Data Table( "table 2" );
// This statement will select all of the rows in data table 1 that are
// between the start and end dates from the second data table
// Taking the value in the second data table's first row for the columns
// START_TIME of SideAStart and END_TIME of SideAEnd
// Not knowing what you really mean as "Filter the Data Table", this is
// a guess as to how you want to "Filter" the data
dt1 << dt1 << select where( dt2:START_TIME of SideAStart[1] <= dt1:END_TIME <= dt2:END_TIME of SideAEnd[1] );