Hey I am trying to join 2 tables but left side is mapping to all entries. Which I am avoiding as I want tables to be merge but with NULL values where it should be
testtable00:
ownership membership
Johnny Active
testtable01:
pet petname
dog John
cat timmy
parrot Johns
when I join them like this:
SELECT * FROM (select * from testtable00 inner join testtable01) as u where u.ownership like "%John%";
ownership membership pet petname
Johnny Active dog John
Johnny Active parrot Johns
what i was trying to achieve was
ownership membership pet petname
Johnny Active NULL NULL
NULL NULL dog John
NULL NULL parrot Johns
ownershipcolumn in either table, did you meanownername?ONclause, you get a cross-product between all the rows.