I have a simple query design question:
I have a table with few columns..consider this scenario:
table: student:
studentid,fname,lname,addr
ess,state,
city,zip,s
tatus,scho
ol
now I want to have filters on my query at random..meaning user can select multiple ways to filter the list of students like, status, school, state etc. could be any combination of columns
how do I design such select statement which handles this. ..select statement can have one or more or no columns in where clause based on what user selects in drop downs provided to him/her.
Thanks
Start Free Trial