I am trying to fetch a row from a table which matches rows from another table without stored procedure in single query. Is this possible? Let me explain graphically. Suppose I have two tables
- tbl_paragraph
- tbl_keywords
I am trying fetch all the paragraph rows whoch matches all the keyword rows.
tbl_paragraph
tbl_keyword
Here when I will try to fetch paragraphs which matches Keyword tables keyword column. So the result will come like as follows
Though I have tried a sql
SELECT a.*
FROM tbl_paragraph AS a
INNER JOIN tbl_keywords b ON a.title LIKE '%b.keyword%'
But it's not working.