You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the right part of the Name property (Name[1]) is actually redundant with the VMSize column because they are related by the -On parameter (where VMSize -Eq Name). In other words, in such a case the name property can be simplified to just: {$Left.$_}:
The same goes for the embedded example: Note that related properties with the same name (where the -equals parameter is omitted) are already merged in the current implementation (prior 3.2.4)
PS C:\>$Employee
Id Name Country Department Age ReportsTo
-----------------------------------1 Aerts Belgium Sales 4052 Bauer Germany Engineering 3143 Cook England Sales 6914 Duval France Engineering 2155 Evans England Marketing 356 Fischer Germany Engineering 294
PS C:\>$Department
Name Country
-----------
Engineering Germany
Marketing England
Sales France
Purchase France
PS C:\>$Employee| InnerJoin $Department-On Department -Equals Name -Discern Employee, Department |Format-Table
Id EmployeeName EmployeeCountry Department Age ReportsTo DepartmentName DepartmentCountry
----------------------------------------------------------------------------------1 Aerts Belgium Sales 405 Sales France
2 Bauer Germany Engineering 314 Engineering Germany
3 Cook England Sales 691 Sales France
4 Duval France Engineering 215 Engineering Germany
5 Evans England Marketing 35 Marketing England
6 Fischer Germany Engineering 294 Engineering Germany
The DepartmentName column is redundant with the Department column, meaning this can be simplified to:
Id Name EmployeeCountry Department Age ReportsTo DepartmentCountry
-- ---- --------------- ---------- --- --------- -----------------
1 Aerts Belgium Sales 40 5 France
2 Bauer Germany Engineering 31 4 Germany
3 Cook England Sales 69 1 France
4 Duval France Engineering 21 5 Germany
5 Evans England Marketing 35 England
6 Fischer Germany Engineering 29 4 Germany
As the Department column and DepartmentName column are equal, meaning that only the Country column is divided in two (EmployeeCountry and DepartmentCountry) columns
The text was updated successfully, but these errors were encountered:
The idea started from the stackoverflow question: How to combine items from one PowerShell Array and one Powershell Object and produce a 3rd PowerShell Object?:
Currently result in:
Where the right part of the
Name
property (Name[1]
) is actually redundant with theVMSize
column because they are related by the-On
parameter (whereVMSize -Eq Name
). In other words, in such a case the name property can be simplified to just:{$Left.$_}
:The same goes for the embedded example:
Note that related properties with the same name (where the
-equals
parameter is omitted) are already merged in the current implementation (prior 3.2.4)The
DepartmentName
column is redundant with theDepartment
column, meaning this can be simplified to:As the
Department
column andDepartmentName
column are equal, meaning that only theCountry
column is divided in two (EmployeeCountry
andDepartmentCountry
) columnsThe text was updated successfully, but these errors were encountered: