I have two tables, ONE and MANY.
ONE.listId (int, not null, primary or unique) is related to MANY.listId (int, not null) via foreign key constraint with CASCADE on delete/update.
When SELECTing over this relationship via:
SELECT
ONE.field AS parent,
MANY.field AS child
FROM
ONE
[JOIN] MANY ON ONE.listId = MANY.listId;
Avoiding production of rows with NULLs in the output, what is the "recommended" join to use in MySQL for optimal performance? INNER? RIGHT?
Given the relationship between the fields, both JOINs will produce the same result. If the optimiser sees this and produces the same strategy for both joins, what is the "traditional" join type to specify in such a situation?