SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select concat(year(payment_date), '-', lpad(month(payment_date),2,'0')) as payment_month, sum(amount) as payment_amount from payment group by payment_month order by payment_amount desc

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear