Hi, What you could do is:
SELECT YEAR(date) as year FROM x GROUP BY CASE WHEN YEAR(date) IS NULL THEN 1 ELSE 0 END, YEAR(date) ORDER BY CASE WHEN YEAR(date) IS NULL THEN 1 ELSE 0 END, YEAR(date) ASC; Regards, Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
