Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Field Values
________________________
TABLE1
Line | Coaxial@Robertstown, Fiber@Steelburgh, Fiber@Robertstown
Location | Robertstown, Steelburgh, Robertstown
JOIN TABLE2 to TABLE1
Cable | Coaxial, Fiber
Speed | 100mbps, 1gbps
I need to join the 2nd table to the first table based on 'Line' containing 'Cable'.
Ideally this is the output
Line Coaxial@Robertstown, Fiber@Steelburgh, Fiber@Robertstown
Location Robertstown, Steelburgh, Robertstown
Speed 100mbps, 1gbps, 1gbps
You can create a field in table 1 as -
Left(Line, index(Line, '@')-1) as Cable
and join it with the second table.