How can I perform a MYSQL search query that returns two different sets of results at the same time? |
[eluser]XMadMax[/eluser]
Dandy_andy, Best method would be making a UNION between both selects. Example: http://heybigname.com/2009/09/18/using-c...ubqueries/ Also, you can make a direct query: SELECT * FROM members WHERE sex='female' LIMIT 6 UNION SELECT * FROM members WHERE sex='male' LIMIT 6 |
Messages In This Thread |
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 01:37 AM
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 02:02 AM
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 03:11 AM
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 03:15 AM
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 03:19 AM
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 03:54 AM
|