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

Order of columns in SELECT statements #211

Open
elibtronic opened this Issue Mar 2, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@elibtronic

elibtronic commented Mar 2, 2018

In the introductory SQL lesson (http://swcarpentry.github.io/sql-novice-survey/01-select/) there is mention of re-using columns and picking any columns you'd like for your select. It might be worth explicitly mentioning (or via an example) that the choice of columns doesn't need to read left to right.

EG.
SELECT id, id, id FROM Person;
is example

Could also have
SELECT personal, id, family, id FROM Person

@remram44

This comment has been minimized.

Collaborator

remram44 commented Mar 2, 2018

Indeed it might be good to not have all the examples use the columns in order. PR welcome!

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