Add support for common aggregate functions(and distinct)
See original GitHub issueFeature request
There are a bunch of commonly used Postgres methods that should be added:
COUNT(*)
AVG(number)
MIN(number)
MAX(number)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Aggregating Distinct Values with DISTINCT - Peachpit
This sample chapter introduces SQL's aggregate functions, or set functions, which operate on a group of values to produce a single, ...
Read more >SQL Aggregate Functions | Intermediate SQL - Mode Analytics
This SQL tutorial covers how to aggregate data across entire columns using the COUNT, SUM, MIN, MAX, and AVG functions. SQL aggregate functions...
Read more >Aggregate Functions - Rockset
All single argument functions support a DISTINCT option, as in COUNT(DISTINCT x) , where all the duplicate values are removed from the input...
Read more >SQL Aggregate Functions: SUM(), COUNT(), AVG(), Functions
An aggregate function in SQL performs a calculation on multiple values and returns a single value. SQL provides many aggregate functions ...
Read more >Learn SQL: Aggregate Functions - SQLShack
APPROX_COUNT_DISTINCT ; CHECKSUM_AGG; COUNT_BIG; GROUPING; GROUPING_ID; STDEV; STDEVP; STRING_AGG; VAR; VARPB. While all aggregate functions ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Forgot to mention it here, but
COUNT
is now an option when making request!https://github.com/supabase/postgrest-js/pull/147
Group By
is provided by postgres. Could we add this feature?It should be relatively simple.
This is also very important because you can’t subscribe to Views or Procedures. There is no work around for that.
J