I always use aliases in queries, one of the main reasons is that the query becomes easier to read. Repeating the full table name again and again simply clutters the code.
In most cases, the table name is superfertile, it is obvious only from the name of the field from which they originate. However, you should always indicate which table you get the field from, which simplifies the query process and becomes less sensitive to changes in the database.
Only a few tables are usually used in a query, and since they are related, it is easy enough to keep track of the tables used. Otherwise, this is another step to determine what the alias means and the information is available directly in the request.
If you need to move the table to another database, aliases are also useful. Since the full name of the table is indicated only once in the query, it is easier to change.
If there is a performance difference between different ways of specifying the same field, it will only be in the process of parsing the request, so that will be minimal. When the request is launched, there is no performance difference at all.
source share