0
您好,我遇到以下情况的问题。 我有一个表“应用程序日志”作为一列中具有相同值的多行
App_name date status
Application 1 10-MAR-17 SUCCEEDED
Application 1 11-MAR-17 SUCCEEDED
Application 1 12-MAR-17 FAILED
Application 1 13-MAR-17 SUCCEEDED
Application 1 14-MAR-17 SUCCEEDED
Application 1 15-MAR-17 FAILED
Application 1 16-MAR-17 SUCCEEDED
Application 1 17-MAR-17 SUCCEEDED
Application 1 18-MAR-17 FAILED
Application 1 19-MAR-17 SUCCEEDED
Application 1 20-MAR-17 SUCCEEDED
Application 1 21-MAR-17 FAILED
Application 1 22-MAR-17 SUCCEEDED
Application 1 23-MAR-17 SUCCEEDED
Application 1 25-MAR-17 SUCCEEDED
Application 3 20-MAR-17 FAILED
Application 3 21-MAR-17 FAILED
Application 3 22-MAR-17 FAILED
Application 3 23-MAR-17 FAILED
Application 3 24-MAR-17 FAILED
我一定要找到“N”必然失败的一个应用程序名称的状态并返回作为结果。例如,如果n = 5,我的查询必须返回app_name = Application 3.
你的问题不够清楚 – Mehr
应用程序3在{0,1,2,3,4}中是否也失败了'n'? –
对于{0,1,2,3,4}中的n也是失败的? – MileP