I need to create a GUI, using which users can select several attributes which will be used to query the database to find suitable persons. I'm looking for ideas how to dynamically generate the database query according to user's choices.Query will contain several fields, but to get the idea I will include only three of those below as an example:
- Occupation - there can be 0 to n occupation strings. If occupation strings are given, one of them have to match.
- Age - age can be given as:
- exact match (30)
- range (e.g. 30-40)
- less than a value (-40)
- more than a value (30-)
- Height - similar as age