GREATEST and LEAST in SQL standard -


I understand that GREATEST () and at least () are not part of the SQL standard, but are very common.

I'm thinking, Is there a way to clone the Greatest functionality while keeping it in SQL standard?

  SELECT id, GREATEST (1, 2,3,4,5,6,7) number from the table  

Completely Query: From the empty section as the compound, average (most (nominated, max 0)) as