I have the following table columns: ID (id), Type (string. could be either: open or close)
I would like to get an output count where for each unique ID, I count how many times the ID got the open type and how many times it got the close type.
So the output would look like this:
ID | openCount | closeCount
10 | 23 | 2
Any ideas?