一個獨特的價值中創建組SESSION_ID --- ---狀態所需---
1C1A1111111 ---開始--- TRIP1 ---在Teradata的
1C1A1111111 ---? - -Trip1 ---
1C1A1111111 ---?--- TRIP1 ---
1C1A1111111 ---?--- TRIP1 ---
1C1A1111111 ---?--- TRIP1 ---
1C1A1111111 ---停止--- TRIP1 ---
1C1A1111111 ---?------
1C1A1111111 ---?------
1C1A1111111 ---?------
1C1A1111111 ---?------
1C1A1111111 ---開始--- TRIP2 ---
1C1A1111111 ---? --- Trip2- - ???
1C1A1111111 --- --- --- TRIP2
1C1A1111111 --- --- --- TRIP2
1C1A1111111 --- --- --- TRIP2
1C1A1111111 ---?--- TRIP2 ---
1C1A1111111 ---?--- TRIP2 ---
1C1A1111111 ---?--- TRIP2 ---
1C1A1111111 ---停止--- TRIP2 ---
數據有兩列,我需要根據開始創建TRIP1&TRIP2和停止,從而啓動和停止之間的行一趟 –
我假設你有一個時間戳列? –
是的,我有時間戳列 –