SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select coalesce(year(payment_date), '') as income_year, staff_id, sum(amount) as total_year from payment group by 1, 2 with rollup

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear