취미와 밥줄사이
[SQL] MIN() and MAX() 함수 본문
The SQL MIN() and MAX() Functions
- MIN() 함수는 선택된 컬럼에서 가장 작은 값을 반환한다.
- MAX() 함수는 선택된 컬럼에서 가장 큰 값을 반환한다.
-
# MIN() Syntax SELECT MIN(column_nmae) FROM table_name WHERE condtion;
-
# MAX() Syntax SELECT MAX(column_nmae) FROM table_nmae WHERE condtion;
REFERENCE
https://www.w3schools.com/sql/sql_min_max.asp
SQL MIN() and MAX() Functions
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
'DB' 카테고리의 다른 글
[SQL] LIKE 연산자 (0) | 2021.11.01 |
---|---|
[SQL] COUNT(), AVG(), and SUM() 함수 (0) | 2021.11.01 |
[SQL] DELETE 문 (0) | 2021.11.01 |
[SQL] UPDATE Statement (0) | 2021.11.01 |
[SQL] NULL Values (0) | 2021.11.01 |