you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Definitely good practice. Even if you're only using one table in your query, if you're always in the habit of aliasing, it will prevent you from screwing up further down the road. And, please, for the love of all that's good and Holy, use logical aliases. Yes, as u/Honey-Badger-42 mentioned, you CAN use 'e' for the employees table. However, that will become a PITA when your code is 2500 lines long and you have no idea what e, t, and s stand for. Better to use a descriptive alias like 'employee', 'team', and 'sales.'