help with sql for a newbie

Original text of this message