Dear all,
I have a database ( SQL server 2012) which is based from AW sample db where I took some sample table design to cover my issues.
My database will host a big list of product organized in category and sub category. From my client application I will provide a FIlter UI where user can defined filter criteria like Price, category name, sub category, name for instance.
I need to build a querry based on given criteria in order to return filter data in an efficient way. In order to get correct data back, based on db structure I will have to handle quite many joins.
What is the proper way to get filtering data out ?
-should I handle it from a single store procs and return the list of matching product ?
-should I handle separate view for each criteria and merge them all in a single view ?
- Any build in feature in SQL ?
I have never use such efficient criteria constraint that I need to implement, thanks for help
regards