Heya, S.
To answer your second question first, you can't. The moderators on this site are well-versed in what makes a good thread title, and if we feel that a thread title needs editing, we'll just take care of it. However, we prefer it when thread titles do not require editing in the first place.
I encourage you to look over our
Posting Guidelines, especially the part about
Thread Titles. That'll put you ahead of roughly 85% of all posters with under 100 posts on this site :)
Ok then. Now onto your problem.
Normally, this would be a simple solution; simply use a LIKE subclause in the WHERE clause:
-
SELECT
-
*
-
FROM
-
`description_tbl`
-
WHERE
-
`description` LIKE '%Microsoft%';
-
The tricky part comes in because we don't know the exact text that we are searching for (depends on the value of the other field).
Fortunately, MySQL has a function that handles this situation very nicely:
-
SELECT
-
*
-
FROM
-
`description_tbl`
-
WHERE
-
`description` LIKE CONCAT('%', `name`, '%');
-
Word of warning: Because MySQL has to calculate the value of CONCAT(), this search is not fully indexable! Be prepared for slow query times on large data sets!