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

Improvements to help make Datasette a better tool for learning SQL #1613

Open
simonw opened this issue Jan 26, 2022 · 5 comments
Open

Improvements to help make Datasette a better tool for learning SQL #1613

simonw opened this issue Jan 26, 2022 · 5 comments

Comments

@simonw
Copy link
Owner

simonw commented Jan 26, 2022

Tracking issue for the general goal of making Datasette a better tool for learning SQL.

@simonw
Copy link
Owner Author

simonw commented Jan 26, 2022

The existing flow where you can apply filters to a table and then click "View and edit SQL" to see the query is a good starting point.

Group by queries are both crucially important and difficult to assemble for beginners. Providing a way to see the query that was used by a facet (since facets are really just group-by-counts) would be very useful, which could come out of this:

@simonw
Copy link
Owner Author

simonw commented Jan 26, 2022

Tool for setting up foreign key relationships. It could even verify the relationship before you apply it - checking that every value in the column does indeed correspond to a value in the other table.

Could also detect and suggest possible ones.

@simonw
Copy link
Owner Author

simonw commented Jan 26, 2022

Joins are really hard. A mechanism for constructing them in the table view would help a lot:

@simonw
Copy link
Owner Author

simonw commented Jan 26, 2022

Better contextual help on the SQL editor - like in Django SQL Dashboard which shows all available tables and columns.

Fancy inline autocomplete would be great too, but that's pretty hard for SQL based on past research.

@simonw
Copy link
Owner Author

simonw commented Jan 26, 2022

A better interface for modifying the columns used in the SELECT clause would be useful too.

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

No branches or pull requests

1 participant