假设我有3个这样的列:
Status, QName, Item
Broken, q1, i1
Broken, q1, i2
Broken, q1, i3
Broken, q2, i4
Broken, q3, i5
Immediate,q1,i6
Immediate,q2,i7
我想要这样的输出:
Status = Broken, No of queues = 3, total items = 5
Status = Immediate, No of queues = 2, total items = 2
如何在单个查询中获得此输出?