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

Put each column being SELECTed on its own line #5

Closed
karl-project-review opened this issue Nov 27, 2018 · 1 comment
Closed

Put each column being SELECTed on its own line #5

karl-project-review opened this issue Nov 27, 2018 · 1 comment

Comments

@karl-project-review
Copy link

SELECT product_id, style, model_name, color, count(*) as total_purchases

You split up the columns being SELECTed onto their own lines in some places, but not in others, and it would help improve readability if you did so consistently, as this would help prevent overly long lines. For example, the above SELECT statement could be broken up like so:

SELECT product_id, 
  style, 
  model_name, 
  color, 
  COUNT(*) AS total_purchases
@vibiii
Copy link
Owner

vibiii commented Nov 28, 2018

OK noted thanks !

@vibiii vibiii closed this as completed Nov 28, 2018
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