I have a table wich has the following columns:
- postcard_id
- postcard_sender_id
- postcard_recipient_id
- postcard_postal_id
And I want to get the total number of postcard table registers that each SENDER_ID sent to each RECIPIENT_ID
If table looked like:
postcard_id | sender_id | recipient_id
1 | 1 | 2
2 | 3 | 1
3 | 1 | 2
The returned result set would have
sender_id | recipient_id | number
1 | 2 | 2
3 | 1 | 1
And so on.
Thanks in advance.