SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT monthname(payment_date) payment_month, amount, sum(amount) OVER (partition by monthname(payment_date)) monthly_total sum(amount) over() grand)total FROM payment WHERE amount >= 10 ORDER bY 1

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear