SELECT COUNT(column) FROM tablename WHERE condition;
#중복 회피
SELECT COUNT(DISTINCT column) FROM tablename WHERE condition;
SELECT SUM(column) FROM tablename WHERE condition;
SELECT SUM(column) FROM tablename WHERE condition;
SELECT MIN(column) FROM tablename WHERE condition;
SELECT MAX(column) FROM tablename WHERE condition;
SELECT UCASE(string);
# $15 가 넘는 메뉴를 대문자로 조회
SELECT UCASE(menu) FROM sandwich WHERE price > 15;
SELECT LCASE(string);
SELECT MID(string, start_position, lenth);
SELECT LENGTH(string);
SELECT ROUND(number, decimals);
SELECT ROUND(315.625, 0); # 316
SELECT NOW();
SELECT FORMAT(number, decimals);
SELECT FORMAT(12345.6789, 0); # 12,346
Reference
1) 제로베이스 강의자료