SQL join ON not equal in Mysql -


i have 2 tables. both contains question id field. want records first table not present in second one. don't want use "not in" constrain second table having more 400000 records.

try like

select  t1.*    table1 t1 left join         table2 t2   on  t1.questionid = t2.questionid   t2.questionid null 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -