Hi,
I have this table that has a lot of book related fields including keywords. Book_ids are primary keys. Let's say I have a book with six keywords describing it, now how do I search all the other books that have two or more same keywords?
What I have now is roughly this:
select book_id
from book_fields
where keyword in ( select keyword from book_fields where book_id='123' )
The purpose is to get rough recommendations of similar books based on keywords. I'd like to do this with SQL if possible.
To clarify: The idea is to match a book to other books using more than one keyword. All the keywords of all books were in book_fields table. No chance to touch the schema and RDMS was Oracle.