UDEMY - The Ultimate MySQL Bootca…The Ultimate MySQL Bootcamp: Go from SQL Beginner to Expert를 수강하며 정리한 글
mysql> SELECT MIN(released_year) FROM books;
+--------------------+
| MIN(released_year) |
+--------------------+
| 1945 |
+--------------------+
1 row in set (0.00 sec)
mysql> SELECT MIN(pages) FROM books;
+------------+
| MIN(pages) |
+------------+
| 176 |
+------------+
1 row in set (0.00 sec)
mysql> SELECT MAX(released_year) FROM books;
+--------------------+
| MAX(released_year) |
+--------------------+
| 2017 |
+--------------------+
1 row in set (0.00 sec)
mysql> SELECT MAX(pages) FROM books;
+------------+
| MAX(pages) |
+------------+
| 634 |
+------------+
1 row in set (0.01 sec)