Select Box In WHERE clause

Kenny's solution is more elegant.

You would trigger the two different queries where my return statements are. You know where you select your SQL query? Select a JavaScript query instead and slap that in. Then on the button to trigger your SQL query instead trigger the JavaScript query.

image

Its slightly more advanced/complicated. I would add to the where clause like Kenny suggested. Its simpler.