I have two complex subqueries that I need to join. I suspect this
problem is due to using aliases instead of table names, but I don't
know how to work around it (temporary tables?). Please help.

SELECT col FROM (subquery-1) AS t1, (subquery-2) AS t2
JOIN t1 ON t2.col = t1.col;

Not unique table/alias: 't1'.

SELECT col FROM (subquery-1) AS t1, (subquery-2) AS t2 WHERE t2.col = t1.col;

Works fine! (But this query is different, because it doesn't get
the rows that are NULL in one of the tables.)

Using MySQL 4.1.2. Thanks in advance for your help.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to