# minmaxrange

Returns the `max` - `min` value in a group

## Signature

> MINMAXRANGE(colName)

## Usage Examples

These examples are based on the [Batch Quick Start](https://docs.pinot.apache.org/release-0.11.0/basics/getting-started/quick-start#batch).

```sql
select MINMAXRANGE(yearID) AS value
from baseballStats 
```

| value |
| ----- |
| 142   |
