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

Order of columns in SELECT statements #211

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

Order of columns in SELECT statements #211

elibtronic opened this issue Mar 2, 2018 · 1 comment

Comments

@elibtronic
Copy link

@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
Copy link
Contributor

@remram44 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants