I create two tables Ta1 and Ta2, from that I will select field where Student have same blood group like AB+.., In Ta1 two person have same AB+ and also Ta2 have two person have AB+ ,

my Query is

select ta1.Name,ta1.dept,ta2.nam,ta2.dep from ta1,ta2 where ta1.blo_g='AB+' and ta2.bl_g='AB+'

but result is displaying second table (ta2's) result again