On a Redshift database, I have a SQL table A with hundred of thousands of rows. This table has a field "name" containing strings. Something like:
| Name |
| ---------------------- |
| Thor |
| Spiderman |
| The Amazing Spiderman |
| Superman |
| Hulk |
| Jonas The Fish |
| Fish Billy |
I also have a table B containing thousands of rows with a field name "Keywords" and containing... keywords. Something like:
| Keyword |
| --------------------|
| Amazing Spiderman |
| Fish |
I want to select all rows from table A that contains a keyword within table B. So my result should be something like:
| Name |
| ---------------------- |
| The Amazing Spiderman |
| Jonas The Fish |
| Fish Billy |
What would be the correct way to make it happen please?
Thank you