SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT monthname(payment_date) payment_month, sum(amount) month_total, round(sum(amount) / sum(sum(amount)) over() * 100, 2) pct_of_total FROM payment GROUP BY monthname(payment_date)

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear