SQL SERVER - Effect of Order of Join In Query(blog.sqlauthority.com)
submitted by
pinaldave(9662) 3 years, 6 months ago
Let us try to understand this subject with example.
We will use Adventurworks database for this purpose. Table which we will be using are HumanResources.Employee (290 rows), HumanResources.EmployeeDepartmentHistory (296 rows) and HumanResources.Department (16 rows).
We will be running following two queries and observe the output. In the resultset the order of first column (EmployeeID) is different in both the cases when whole resultset is same. When compared both the results they are same but the order of rows is different in both the resultset.
|category: Database
|Views: 14
tags:
SQLAuthority pinaldave SQLServer Database SQL another
Everyones tags:
Your Tags: