Re: Sub query help

2007-05-16 Thread Peter Brawley
Brian, I think the answer is to create a sub query, Without your tables I can't test this transcription, but the trick is straightforward: if the first query includes the column(s) required to join it correctly to the 2nd query, replace the avgscore table reference in the second query with

Re: Sub query help

2007-05-16 Thread Brent Baisley
In a nutshell, one way to do subqueries is to just name the query and join on it as if it was a regular table. SELECT field1,field2,... FROM table1 INNER JOIN table2 ON field1=fieldT2 INNER JOIN (SELECT fieldA, fieldB FROM tableA WHERE ...) AS table3 ON fieldA=field1 ... More commonly people