I have a large sqlite table of 33k records (movies) . I want to give the user the ability to search in that table via filters . Each movie record has 10 fields : Actors, Directors, Runtime, Genre, Rating and few more . The only filters available for the user to use are people (Include Actors and Directors), Genre, Rating and Runtime .
The problem is that the user can use two filters or more, hence we don't really know which filter will be used . Filters values are passed via an HTTP req to the server which process it and create an SQL query based on filters to execute on the db .
What I can't understand is how can I create an SQL query if I don't know which filters will be used ? Because only used filters will be sent to the server .
Basically I want to find a way to create an SQL query based on sent filters by each users .