
PUZZLE 15 FIND THE LAST TWO SALARIES 65
My guess is that it had something to do with inability to resolve such
problems without a precise definition of the tables to which the query is
to be applied, the business rules in effect for the tables, and the query at
issue. I will let Chris Date to respond to PV’s solution.”
Chris Date posted a solution in his private language that was more
compact than Jack’s solution, and that he evaluated was “Tedious, but
essentially straightforward,” along with the remark “Regarding whether
Celko’s solution is correct or not, I neither know, nor care.”
A version that replaces the outer join with a
COALESCE() by ...