Reputation: 94
I am working on project with huge data and usage. Many procedures are being used with multiple joined SQL Select queries.
My friend told me that using column names with table name is much better in respect to performance instead using column with table alias.
Query my friend suggested
select Employee.Name, Employee.Address, District.DistName
From Employee
INNER JOIN District ON Employee.DistCode=District.DistCode
Query I am currently using
select e.Name, e.Address, dist.DistName
From Employee e
INNER JOIN District dist ON e.DistCode=dist.DistCode
As far as I know, table aliases boost up query readability. Is there also any performance effect with table aliasing vs direct table name.
Upvotes: 0
Views: 117