sql_aggregate_enhanced
Run aggregate functions (count, sum, avg, min, max) on any Supabase table using raw SQL, bypassing client limitations. Supports filters and grouping.
Instructions
Execute aggregate functions using raw SQL (bypasses Supabase client limitations)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name to aggregate | |
| column | No | Column to aggregate (not needed for count) | |
| filters | No | WHERE clause filters (key-value pairs) | |
| function | Yes | Aggregate function (count, sum, avg, min, max) | |
| group_by | No | Column to group by (optional) |