Okay I have table: ad-domains with one column and I want to find all rows in another table called history with 3 columns: key, domain, time.
I want to do something akin to
SELECT * FROM history WHERE domain LIKE "%{ALL_DOMAIN_COLUMN_FROM_ad-domains_TABLE}"
Is this possible?
Some Data for an example:
ad-domain:
domain
------
ads.com
moreads.com
gottahaveads.com
history:
key domain
-----------------------------------
1 google.com
2 subads.ads.com
3 gmail.com
4 moreads.com
5 whoa.moreads.com
6 000.hi.whoa.moreads.com
7 ads.com.taco
The result should be
key domain
------------------------------------
2 subads.ads.com
4 moreads.com
5 whoa.moreads.com
6 000.hi.whoa.moreads.com