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 from payment group by payment_month order by month

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear