Suppose I have a table called Abilities
that look something along the lines of
DayOfWeek | Action | Strength |
---|---|---|
Sunday | Walk | Weak |
Sunday | Walk | Strong |
Sunday | Run | Strong |
Monday | Walk | Strong |
I want to be able to do a group by the Action
and Strength
, and then check if the entry exists for each day of the week:
Action | Strength | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
---|---|---|---|---|---|---|---|---|
Walk | Weak | Y | N | N | N | N | N | N |
Walk | Strong | Y | Y | N | N | N | N | N |
Run | Strong | Y | N | N | N | N | N | N |
I heard a Pivot might accomplish this, but I was wondering if there were any options available? Thanks.