CREATE TABLE INVOICES (payment_method_code VARCHAR)

What is the payment method code used by the most orders?
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1
SELECT "payment_method_code" FROM "INVOICES" GROUP BY "payment_method_code" ORDER BY COUNT(*) DESC NULLS LAST LIMIT 1