J
Jay Balapa
Hello,
Underlying table has the following fields and values
Barcode Item Pass
1000 x YES
1001 x YES
1002 x NO
1003 x NO
1004 y YES
1005 y YES
1006 y NO
Iam trying to create a summary resultset which has the follwing-
Item, [Total # of items], [# of Items Passed], [Percentage Passed]
x 4 2 50%
y 3 2 66%
I know I have to group by item and use the count to get the total number of
items. But Iam baffled on how to get # items passed and Percentage.
Can this be accomplished in a single statement?
Any help will be greatly appreciated.
-Jay
Underlying table has the following fields and values
Barcode Item Pass
1000 x YES
1001 x YES
1002 x NO
1003 x NO
1004 y YES
1005 y YES
1006 y NO
Iam trying to create a summary resultset which has the follwing-
Item, [Total # of items], [# of Items Passed], [Percentage Passed]
x 4 2 50%
y 3 2 66%
I know I have to group by item and use the count to get the total number of
items. But Iam baffled on how to get # items passed and Percentage.
Can this be accomplished in a single statement?
Any help will be greatly appreciated.
-Jay