Is it always better to use -
Select E.Id,D.DeptName from Employee E join Dept D on E.DeptId=D.Id
instead
Select Employee.Id,Dept.DeptName from Employee join Dept on Employee.DeptId=Dept.Id
Besides readability and shorter request lengths , what is the advantage of using aliases? When I consulted with our database expert, he says that the query can break down if there are times there are no aliases ... that I do not understand completely ... I would appreciate if someone would share their thoughts about which best practices to follow ... Thank you very much.
source
share