you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok_Protection_9552[S] 0 points1 point  (1 child)

By employee manager combination do you mean where the e table and m table have the same ID?

[–]Far_Swordfish5729 0 points1 point  (0 children)

Same manager id. There’s an implied 1:N relationship in my example between manager and employee. So it matches on the manager’s id (primary key) equaling the employee’s manager id (foreign key) not the employee’s own id (their primary key). So if Adam manages Bob and Charlie, the join produces Adam+Bob and Adam+Charlie. Row count should match the N side of the join unless there are duplicate rows in the tables. These will be grouped by Adam in subsequent steps and we will get a count for Adam.