I need to create a SP which will filter based on none, one or more criteria user selects. I idea is give the user to select, say, customers based on City, Territory, Region, Town etc (there are around 10 filters to selected). The user may or may not select any filters.
What would be the best way to build a query for this purpose. I am currently trying with a CASE inside the WHERE clause but so far not working. Also, I am clueless on placing "AND" keyword when building conditions.
Please help