The RANGE function
The RANGE function computes the difference between the maximum and the minimum values for the selected rows.
You
can apply the RANGE function only to numeric columns.
The following query finds the range of prices for items in the stock table.
As with other aggregates, the RANGE function
applies to the rows of a group when the query includes a GROUP BY
clause, which the following query shows.