SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT p.payment_id, TRUNCATE('month', p.payment_date) AS payment_month FROM payment p GROUP BY payment_month ORDER BY payment_month

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear