i have three checkboxs in my application. If the user ticks a combination of the boxes i want to return matches for the boxes ticked and in the case where a box is not checked i just want to return everything . Can i do this with single SQL command?
Share
You can build a SQL statement with a dynamic where clause:
Or you can create a stored procedure with variables to do this: