min and max return the smallest and largest values of a column, respectively.
SQL Min/Max Syntax
SQL’sMIN/MAX syntax is supported in beta. To enable it, first run
MIN/MAX ignore null values. Use COALESCE to include them in the final sum: