Question
2 SELECT statements in one recordset??? php/mysql for search
I have two tables one name class1 and the other class2 where
there is no join possible.
They are for a search result where I also have a conditon that is to be met that they both have a status as being 'active'.
Do I do it as one SELECT DISTINCT gving conditions for one table then the other and
WHERE class1.status = 'active' AND class.2.status = 'active'
Should it be SELECT DISTINCT gving conditions for one table then
SELECT DISTINCT gving conditions for second table.
I am only used to inner. left and right joins.
Hope someone can help, not sure whether you can have two SELECT statements in one recordset
They are for a search result where I also have a conditon that is to be met that they both have a status as being 'active'.
Do I do it as one SELECT DISTINCT gving conditions for one table then the other and
WHERE class1.status = 'active' AND class.2.status = 'active'
Should it be SELECT DISTINCT gving conditions for one table then
SELECT DISTINCT gving conditions for second table.
I am only used to inner. left and right joins.
Hope someone can help, not sure whether you can have two SELECT statements in one recordset
