Welcome Guest, Not a member yet? Register   Sign In
Yet another MySQL join question! :P
#2

[eluser]darkhouse[/eluser]
I think what you want is a UNION. Try this:

Code:
SELECT AdID, CityID, OrderSequence FROM ad_listing
UNION
SELECT AdID, CityID, OrderSequence FROM ad_listing_cities
WHERE CityID = 484 AND Active = 1
GROUP BY AdID
ORDER BY OrderSequence


Messages In This Thread
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 06:19 PM
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 06:28 PM
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 06:33 PM
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 06:35 PM
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 06:47 PM
Yet another MySQL join question! :P - by El Forum - 06-24-2009, 07:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB