Hello
I have these 2 queries and i was wondering if any one can help me with coming up with one query that does the job?
first one is (Where $device_pro= “1,4,3”; )
[php] $sub_query = mysql_query(“SELECT cat_id, cat_name FROM providers WHERE cat_removed=0 AND cat_id NOT IN ($device_pro) ORDER BY cat_name ASC”);[/php]
second one is
[php] $sub_query = mysql_query(“SELECT cat_id, cat_name FROM providers WHERE cat_removed=0 AND cat_id IN ($device_pro) ORDER BY cat_name ASC”);[/php]
is there a way to get the same results by running one query???
Thanks for the help