
- count()를 통해 해당 조건에 결과값의 개수를 알 수 있다.
select count(column1) from table tableName
- distinct(중복값 제거)를 통해 해당 컬럼의 고유값이 몇개인지 확인하는 등 다양하게 사용할 수 있다.

- sum()은 해당 column의 합계를 알 수 있다.
select sum(column1) from tableName where condition
- 조건문을 추가함으로써 해당 조건에 column(int, float)의 값에 총합을 알 수 있다.

- 다양한 조건을 추가함으로써 원하는 정보값을 한정적으로 추출할 수 있다.
- 위에 내용은 종로경찰서로 or 남대문경찰서에서 강도 범죄건수에 대한 총합을 알 수 있으며,
- 폭력 범죄가 검거된 총합을 데이터로 추출하고 있다.

- 그리고 avg, max, min 등 다양한 함수 기능을 사용해 해당 column의 평균, 최고값, 최저값 등을 확인할 수 있다.

- 함수와 함께 group by를 사용하면 데이터를 항목별로 가독성 있게 정리할 수 있다
select column1, function(column)
from tableName
where condition
group by column1
ordey by column or function
- 또한, order by에 함수값을 넣음으로써 평균, 총합 등을 통해 정렬을 할 수 있다.

- group by은 한 가지만 이상 그룹화할 수 있으며, 이는 pandas의 pivot_table에 column설정과 비슷한 기능을 하고 있다.

- having 명령어는 함수값을 조건으로 해당 조건에 충족하는 결과값만 data를 추출할 수 있다.
select column1, column2
from tableName
whrer condition
group by column
having function condition
order by function or column

- 조건문, function, group by, having, order by 등 다양한 기능을 사용해서 해당 문법처럼 다양한 조건으로 그룹화해서 정렬한 Data를 추출할 수 있다.