I have two datasets:
data1
is like
id name
1 1 toyota
2 2 walmart
3 3 fox ad company
data2
is like
id name
1 1 sales walmart
2 2 fox advertisement company
3 3 metro toyota
Consider in this instance that we expect to find all the names of data1, in data2's names.
How to do this match? If we find a match between data1 and data2, we would print the id of data1.
For example:
id name data2
1 1 toyota 3
2 2 walmart 1
3 3 fox ad company 2