I have a simple query, or so I thought:
select table1.pid,
table1.tid,
from table1
LEFT JOIN table2 ON table1.tid = table2.tid
where table1.tid = '1'
and table1.pid <> table2.pid
What I am basically looking for is all the pid and tid records where the tid equals '1' in table1 and where the pid doesn't exist in table two.
If someone can point in the right direction it would be appreciated.
Cheers,
Stretchy