Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add params to allow possibility to make group by on queries #21

Open
geoffreyaldebert opened this issue Jul 31, 2024 · 0 comments
Open
Assignees

Comments

@geoffreyaldebert
Copy link
Contributor

geoffreyaldebert commented Jul 31, 2024

We want to be able to do query like that :

SELECT COLUMN1, SUM(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;
SELECT COLUMN1, AVG(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;
SELECT COLUMN1, COUNT(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;
SELECT COLUMN1, COUNT(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;
SELECT COLUMN1, MIN(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;
SELECT COLUMN1, MAX(COLUMN2) FROM TABLE  GROUP BY COLUMN1 LIMIT 10;

maybe implemented like that :

https://tabular-api.data.gouv.fr/api/resources/<resource_id>/data/?groupby_x=column1&groupby_y=column2&operator=sum&limit=100

maybe limit the limit size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants