Self join
A table can join itself: give it two aliases and treat them as two tables. LEFT JOIN keeps members nobody recommended.
task
Each member's surname with the surname of who recommended them (NULL if nobody).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A table can join itself: give it two aliases and treat them as two tables. LEFT JOIN keeps members nobody recommended.
Each member's surname with the surname of who recommended them (NULL if nobody).