개발을 하다보니 오라클이나 MS_SQL과 달리 굉장한 제약이 많은 SQLite... 사실 쿼리땜에 골치 아팠는데
지원되는 함수도 없고... 그래서 피펏테이블과 비슷한 형태를 만들어야 했었는데 다행이 여기 함수보고 쉽게 해결!!
SQL As Understood By SQLite
Aggregate Functions
The aggregate functions shown below are available by default. Additional aggregate functions written in C may be added using the sqlite3_create_function() API.
In any aggregate function that takes a single argument, that argument can be preceded by the keyword DISTINCT. In such cases, duplicate elements are filtered before being passed into the aggregate function. For example, the function "count(distinct X)" will return the number of distinct values of column X instead of the total number of non-null values in column X.