Hello I have the following table formatted like this:
Owner ID Total Count Type Count
ABC 100 Blue 12
ABC 100 Red 11
ABC 100 Green 10
ABD 55 Blue 4
ABD 55 Red 6
ABD 55 Green 10
How would I create a query to count the rest. For example for ABC - there is a total of 100, 33 colors, so the rest would be 67. So for every Owner ID insert a row for the rest?
I really hope this makes sense.
Here's a view of what I'm trying to achieve:
Owner ID Total Count Type Count
ABC 100 Blue 12
ABC 100 Red 11
ABC 100 Green 10
ABC 100 Rest 67
ABD 55 Blue 4
ABD 55 Red 6
ABD 55 Green 10
ABD 55 Rest 35
any guidance on this is much appreciated!
Owner ID Total Count Type Count
ABC 100 Blue 12
ABC 100 Red 11
ABC 100 Green 10
ABD 55 Blue 4
ABD 55 Red 6
ABD 55 Green 10
How would I create a query to count the rest. For example for ABC - there is a total of 100, 33 colors, so the rest would be 67. So for every Owner ID insert a row for the rest?
I really hope this makes sense.
Here's a view of what I'm trying to achieve:
Owner ID Total Count Type Count
ABC 100 Blue 12
ABC 100 Red 11
ABC 100 Green 10
ABC 100 Rest 67
ABD 55 Blue 4
ABD 55 Red 6
ABD 55 Green 10
ABD 55 Rest 35
any guidance on this is much appreciated!