I have three tables as:
Table1:
Handle Name Description
OP1,BP1,33:A OP1 OP1 Desc
Table2:
Handle Attribute Value
OP1,BP1,33:A Z_MARK X
Table3:
Handle CurrentHandle ValuationPoint
Z:Y:Z OP1,BP1,33:# Disc Roll
Now i am trying to join the three tables so my query that i have come up with is:
Select t1.Handle , t1.Name , t1.Description from table1 t1
inner join table2 t2 on t2.Handle = t1.Handle
inner join table3 t3 on t2.Handle like CONCAT('%', t3.CurrentHandle, '%')
But as usual i am getting no records.
In the three tables table1 and table2 have same value for column Handle where as table2's Handle is almost similar to table3's CurrentHandle Column.
So i was trying to join these three tables with Like clause.