Created
February 2, 2023 11:03
-
-
Save dvisockas/8f814358ab07a9bf5c771729d1f89629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select category, reason_code_id, kind, symbol, count(*) as counter from disbursement_payment_request_current_states dprcs | |
join disbursement_states ds on ds.id = dprcs.state_id and ds.category in ('rejected', 'action_required') | |
join disbursement_payment_request_state_reason_codes dprsrc on dprsrc.payment_request_state_id = dprcs.payment_request_state_id | |
join reason_codes rc on rc.id = dprsrc.reason_code_id | |
group by category, reason_code_id, kind, symbol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment