so, i have this table generated annually :

```
+----+------+
| id | name |
+----+------+
|  1 | 20162|
|  2 | 20162|
|  3 | 20171|
|  4 | 20171|<<<||| "how do i get this bfore max value"
|  5 | 20172| 
|  6 | 20172|
+----+------+

```

If i query : 

```
SELECT name FROM table WHERE where name=(SELECT max(name))

```

The result is **20172**

How do i get the value before that (20171)?