I have two CSV files:
CSV_1:
Name,Age,
John,20
Amy,25
Joe,30
CSV_2:
Name,Address
JohnDoe,123 street
AmyDoe,456 street
JoeSmith,789 drive
Is there a way to join them together in Powershell using SQL LIKE syntax?
For example:
select *, csv2.address from csv1
left join csv2 on csv2.Name LIKE (csv1.Name + '%%')
I tried to use the JOIN-OBJECT module but it doesn't look like there is way to use this kind of filtering. Or maybe I cannot find an example to do it. It has to be done in Powershell due to some restrictions. Any help on this is appreciated.
Thanks