I care much less about what SQL technique is used to solve the problem, I just think we should get rid of the switch.