I need to get only those rows which dont have the corresponding entry in the right table advlabel , so I am doing a full left outer join :
SELECT newparsed.seqid,newparsed.wordindex,label,arg1,arg2,sublabel FROM newparsed
LEFT OUTER JOIN advlabel ON ((`advlabel`.`seqid` = `newparsed`.`seqid`) AND (`advlabel`.`wordindex` = `newparsed`.`wordindex`))
WHERE sublabel = NULL
So is the above query correct sublabel is a column from the right side table advlabel ?
both tables have primarykey(seqid,wordindex)
= NULL
should beis NULL
LEFT OUTER JOIN
:-)left outer join .... Is null
to do an anti semi join is quite a common approach and according to this article performs as well as any other in MySql explainextended.com/2009/09/18/…