christrinder
02-28-2007, 08:01 PM
Hi all,
I might be approaching this in the wrong way, but I want to run a SQL statement in MySQL v4, that brings back rows from one table, where the parentID doesn't exist in another table. In SQL-Server, I would have just the WHERE syntax; " x NOT IN (SELECT y FROM z) " but this doesn't seem to work.
What's the best way to achieve this in MySQL v4?
Thanks,
Chris
I might be approaching this in the wrong way, but I want to run a SQL statement in MySQL v4, that brings back rows from one table, where the parentID doesn't exist in another table. In SQL-Server, I would have just the WHERE syntax; " x NOT IN (SELECT y FROM z) " but this doesn't seem to work.
What's the best way to achieve this in MySQL v4?
Thanks,
Chris