Ted Byers <r.ted.byers@xxxxxxxxxx> writes: > --- Tom Lane <tgl@xxxxxxxxxxxxx> wrote: >> Why are you asking this list for help with a MySQL >> performance problem? >> > because my question isn't really about MySQL, but > rather about how best to construct the SQL required to > get the job done, regardless of what database is used. > I have seen some claims that it is better to use > joins instead of correlated subqueries and others that > say the opposite. The problem is that the answer may well be different for different databases. You'd get better answers about MySQL on a MySQL list than you'll get here. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match