php - Generating duplicate value mysql query -
edited--
table1 name ownership_profile
table2 name socity_unit
colum in table1: name , unit_id
colum in table2: wings , unit_no
how join in 1 table
if there n rows in table socity_unit same socity_id (as sid in table ownership_profile) see cartesian product of socity_unit x ownership_profile.
thus, every row in ownership_profile each matching row in socity_unit.
now, because have '*' in select statement columns both tables. if first table has many-many columns there illusion rows duplicated, till scroll right, in order see columns second table ...
is case?
Comments
Post a Comment