【发布时间】:2019-06-20 11:20:23
【问题描述】:
我有以下带有数据的输入列
Type1 Time1 Type2 Time2 Type3 Time3
Linehaul 3 Trans 2 Sort 1
Trans 5 Sort 2 Linehaul 2
输出应该如下所示,末尾有一个新列,它从之前的列中选择排序时间 WHERE type 1 or type 2 or type 3 = Sort 单词 Sort 只能在前三种类型中的任何一种中出现一次。 代码应该出现在 SQL Oracle 中
Type1 time1 Type2 time2 Type3 time3 Trans time for sort
Linehaul 3 Trans 2 Sort 1 1
Trans 5 Sort 2 Linehaul 2 2
【问题讨论】: