http://www.sql.ru/forum/1129963/vybor-strok-summiruya-po-4-m-parametram-otlichaushhihsya-5-m-parametrom