I am working on a project developed by a developer who left the company. There is a book
table which a column theme_id
. theme_id store in comma separated value such as
id theme_id
50 14,15
Currently the previous developer created another table book_theme_list
with column book_id
and theme_id
to do the searching.
For example:
book_id theme_id
50 14
50 15
It works but data is duplicated and the two table need to sync on every CRUD.
What is the point on having this? I delete book_theme_list
and use %LIKE% in my query and it also work.