Welcome Guest, Not a member yet? Register   Sign In
mySQL query help
#2

[eluser]dmorin[/eluser]
It's probably going to be easiest for you to use separate queries rather than trying to do everything in one. The problem is that you're doing multiple joins combined with aggregate functions which will almost certainly through off your aggregated counts and sums.

Do the first query to get all of the rows you want from twibsDB, make an array of all the ids you want, and then use where_in() to query each other table, grouping on the twibsID column.


Messages In This Thread
mySQL query help - by El Forum - 05-14-2009, 10:22 AM
mySQL query help - by El Forum - 05-14-2009, 01:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB