Table:
0
A
B
C
1
physician
department
primary affiliation
2
1
1
1
3
2
1
1
4
3
1
0
5
3
2
1
6
4
1
1
7
5
1
1
8
6
2
1
9
7
1
0
10
7
2
1
11
8
1
1
12
9
3
1

Questions and formulas:
Question: List the physicians' employee ids together with their primary affiliation departments' ids.
Formula: HSTACK(SUM(A1), SUM(C1), SUM(B1))
Formula2: HSTACK(SUM(A2:A12), SUM(C2:C12), SUM(B2:B12))
Level: hard
Question: What are each physician's employee id and department id primarily affiliated.
Formula: HSTACK(SUM(A1), SUM(B1), SUM(C1))
Formula2: HSTACK(SUM(A2:A12), SUM(B2:B12), SUM(C2:C12))
Level: hard