tricky SQL question!

Original text of this message