過濾日期和時間範圍內的數據你好。
我想過濾 2 個日期內的數據。
日期在另一個表中。
表格1:

表 2:

如何過濾表 1 中 END_TIME 在表 2 中的 START_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] );