My question regards how to design a database.
I have one table, called posts, with columns:
ID, subject, keywords, (and a few other columns)
and another table called keywords with:
kw_id, keyword.
Now, each "post" has several keywords and, sometimes, keywords are deleted because they don t make sense or are duplicates.
My question is:
Can keywords column in table posts be a foreign key? (each row will have multiple keywords)
If I can t, what is the best way to ensure data integrity (specially when a keyword is deleted)?
thanks in advance
EDIT: Can you point me any books or documents I should read about database design? It seems I m laking key knowledge about database design.