Best group member,

I just made up this query, but let us work from this:

SELECT * FROM table1
LEFT OUTER JOIN table2 ON (table1.id=table2.id)
WHERE table2.prop IS NULL;

This selects all rows from table1 where the id is not also in the table2. Is
there any more logic way to do this, this is what I would like to do (in
words):

I want to select all rows in table1 that does not already have an reference
in table2.

Is that understandable? 

Best regards,
Peter Lauri


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

Reply via email to