News for hackers. Stuff that matters.
Re:SQL style guide by Simon Holywell by prudentpomelo on Friday November 15, 2024 @03:09AM (#42144844)
Please don't make me write uppercase keywords. They make my eyes bleed and hurt my hands. Why not let the syntax highlighter do the heavy lifting for you? Dress your keywords with mauve or a nice butterscotch. Don't shout at the database. Write queries as if you are texting your best friend—all lowercase. Your friend understands and so does the database.

  select      e.first_name,
              e.last_name,
              s.amount
  from        employee as e
  inner join  salary as s
              on e.id = s.employee_id;

There are no comments on this comment yet.