My problem is this:
Say I hypothetically have a table called fastfood which has one field called fastfood_chains that have values of “Awesome Wendys” and “Peanut Chuck”
Then I have another table called fastfood_info that has a field “fastfood_chain” but the values aren’t identical to the other table, it’s shortened to “Wendys” or “Chucks”
How would I display all the rows from fastfood_chain and have the results print the full name using the other table instead of just “Wendys” or “Chucks” ?
I assumed it had something to do with the LIKE statement but I’m having difficulties. Any help would be appreciated.
If You know that fastfood_chain in second table contains only subsets of fastfood_chain from first table. I didn’t quite understand what exact columns do You want in the result, but You can list them with fff and ffc prefix:
Please note that this might be extremely slow depending on many factors.
P.S.: I don’t have access to MySQL instance at the moment. Hope it works now.
For MSSQL users, the last line should be: