What are all the invoices?
select * from invoices
Show all kinds of payment method codes among them.
select payment_method_code from invoices group by payment_method_code
How many orders are there for each of them?
select payment_method_code, count(*) from invoices group by payment_method_code