I have two table in two different database.
Kalix2–>I have one tableph_CompaniesAsterisk–> Here I have table calledcdr.
In ph_Companies I am having CompanyName column and company name is in this format.
CompanyName
AccuWebHosting
In other table I am having another column clid which stores the company name in the following format.
clid
"AccuWebHosting-EN" <6618083563>
Now, my question is how can I make join between these two table based on this column. In both the table these are the only column which is having some common data. No other column is having similar data.
Please help me. Thanks in advance.
Caution, this query is very slow if you want large database because it requires a FullTable Scan. The reason is you have “bad” schema design. I’ll recommend you to alter the tables like this,
and you will have a query like this,
which is FAR more better than the query above.