SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT courier_id, COALESCE(CAST(DATE_PART('year', birth_date) AS INTEGER), 'unknown') AS birth_year FROM couriers ORDER BY birth_year DESC, courier_id ASC;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear