请教SQL左外联结的相关问题
两句SQL语句
select subscr_id,account_no from subscr_base left join bm_hp on(subscr_base.plan_id=bm_hp.hp_id) left join bm_hp_category on (bm_hp.cat_id=bm_hp_category.cat_id and (bm_hp_category.cat_id=3 or bm_hp_category.cat_id=12 or bm_hp_category.cat_id=13)) where subscr_base.status='1' order by account_no;
结果有9000多条select subscr_id,account_no from subscr_base left join bm_hp on(subscr_base.plan_id=bm_hp.hp_id) left join bm_hp_category on (bm_hp.cat_id=bm_hp_category.cat_id )where subscr_base.status='1'and (bm_hp_category.cat_id=3 or bm_hp_category.cat_id=12 or bm_hp_category.cat_id=13) order by account_no;结果只有300多条请问两句SQL有哪些区别,为什么会有这样的差别的?