I know this might sound strange and I can certainly work around my problem. I am using SQL on server side code and a statement is similar to the following:
SELECT myCol FROM mytable WHERE myCol2=url_parameter
url_parameter is a string passed through the URL. Is there any way to set url_parameter to something but still get all facts in the table?