SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select DATE_FORMAT(payment_date, '%Y-%m') as payment_month, sum(amount) as payment_amount, count(*) from payment group by payment_month order by payment_amount DESC /*select * from payment

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear