Skip to content
Mathias Rangel Wulff edited this page Jun 12, 2015 · 3 revisions

Keyword COUNT

Summing aggregator.

Syntax:

    COUNT([DISTINCT] expression | *)

AlaSQL supports COUNT() aggregator:

    SELECT COUNT(*) FROM one;
    SELECT COUNT(a) FROM one;

Also you can use COUNT() with DISTINCT keyword to count all non repeated values:

    SELECT COUNT(DISTINCT a) FROM one;
Clone this wiki locally