Advertisement

07.31.2007 at 11:47AM PDT, ID: 22732630
[x]
Attachment Details

query design -

Asked by saxenams in MySQL, Databases Miscellaneous

I have a simple query design question:

I have a table with few columns..consider this scenario:

table: student:
studentid,fname,lname,address,state,city,zip,status,school

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.


ThanksStart Free Trial
[+][-]07.31.2007 at 12:00PM PDT, ID: 19603204

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MySQL, Databases Miscellaneous
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.31.2007 at 12:05PM PDT, ID: 19603245

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.31.2007 at 12:07PM PDT, ID: 19603254

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.31.2007 at 01:27PM PDT, ID: 19603909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 07:50AM PDT, ID: 22007573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 09:12PM PDT, ID: 22013222

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.19.2008 at 01:31AM PDT, ID: 22041811

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 04:48AM PDT, ID: 22068045

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32