我需要加入这两个声明,但似乎我错误地使用了UNION和/或JOIN:
SELECT ElapsedTime2 AS 'All Waits/Walks'
FROM TABLE_TEST2
WHERE StepID = '1081'
ORDER BY ElapsedTime2
SELECT ElapsedTime2 AS 'Arrives in Line'
FROM TABLE_TEST2
WHERE StepID = '1079'
ORDER BY ElapsedTime2
希望它应该像这样聚集在一起:
All Waits/Walks Arrives in Line
6 9
8 12
11 15
感谢您的帮助!!我随着时间的流逝学习。